-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(View): add support for styleUrls #2459
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let i and facade isString
|
I think there are 2 independent things here:
A side effect of this would be that the @vicb Could you change the code accordingly? |
Why ?
Should we rename it to
May be we should chat today to clarify this ? |
|
talked to @mhevery: Please inline first and then start the compile process. This is ok for production as in that case we would inline the html and styles in a build step so there would be no xhrs. |
|
Thanks for the feedback, I'll update tomorrow. |
|
@tbosch could you please review this PR ? Currently I have implemented what we've discussed yesterday: move the styles from the annotation inside the template before the compilation. In order to keep the PR reviewable, I'll address the remaining stuff (see TODO in the description above) as separate PRs. |
d2137ed to
5632d92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe 'TODO: remove PromiseWrapper.reject and throw directly'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind...
|
Looks good. Please add link to the PR that will make ShadowDom strategy sync. |
|
Needs rebase though... |
|
landed as ac3e624 + previous commits |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
@mhevery When
styles: []are specified on the@View, they will be handled by the shadow DOM strategy (@importare inlined, selector are re-written).Ultimately when
styleswill be populated during the build phase, there will be no need to transform the styles (already transformed).styles: Listorstyle: stringis ok ? (concatenation could also happen at build time) ?TODO:
TemplateLoader->ViewLoader