[QUESTION] Angular2 template migration to per-component styles #1370

Closed
opened 2025-08-09 17:19:53 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rbasniak on 9/21/2016

I saw the last update on Angular2 changed to per-component scoped styles, and completely removed the global styles.

Doesn't it make sense to have a application wide style like it was before, and also some per-component styles just to exemplify how to do it?

Please correct if I'm wrong, but as it is now, I understand that if I create a global stylesheet it won't be included in the bundle anymore. This way if I have some styles that are used in more than one component, I'll have to duplicate the code...

*Originally created by @rbasniak on 9/21/2016* I saw the last update on Angular2 changed to per-component scoped styles, and completely removed the global styles. Doesn't it make sense to have a application wide style like it was before, and also some per-component styles just to exemplify how to do it? Please correct if I'm wrong, but as it is now, I understand that if I create a global stylesheet it won't be included in the bundle anymore. This way if I have some styles that are used in more than one component, I'll have to duplicate the code...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1370
No description provided.