CSS in userCSS vs component reference vs page link...
-
Since angularjs doesn't have ng2's parsers, we cannot encapsulate css inside a component. Assuming several components on a page, and several custom pages in an app, would it be preferable to include (or link) all css on each page, or combined in custom.css? I'm assuming namespacing the css as necessary to appropriately component-scope it. Thanks for your thoughts.
-
I would put it all in a single CSS file. If your project grows and it becomes unmanageable you could look at using Webpack to import CSS in your components. This is what we use, however for a smaller project I would consider it to probably be more trouble than it is worth.