Answer the question
In order to leave comments, you need to log in
Does Angular (2+) have scoped styles?
For example, with Vue in a single-file component, you can specify , and then the framework adds a generated attribute to the component and modifies the styles themselves somewhat, which allows you to avoid duplicating classes and styles in different components - you get something like shadow dom within the component styles.
Is it possible to do the same in Angular?
PS: I know there are BEM and similar concepts. Interested in a normal solution, not such a "crutch".
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question