-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some templates are missing common properties like id #1028
Comments
Some of those properties were added on “need to” basis. |
Also it's possible that some templates do not need these id because they are not used there or template is part of another template. |
@DarkSide666 I spotted this when I needed to work with main layout - there is no id and also Quite legit use case. |
Yes sure. I'm not against it. We should add |
templates should be redesigned to be parsed into DOM - we can then manupulate the DOM in init as needed then |
Templates like
admin.html/pug
are missingid
property.Is that intentional?
Element properties like
id
,data
, ... has almost nothing to do with styling and if user/programmer wants to add them, it should be always possible no matter if defined in the template or not.This is a feature request to introduce some special template parameter like
{$implicit_props}
which can be easily added to all templates and then the common html properties can be added with one centralized code fromView
. Another option might be to always parse the template and set the common properties by DOM (which is not easy, as templates might not be always be valid html).The text was updated successfully, but these errors were encountered: