Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Can you give some live examples in this? Commented Oct 10, 2018 at 14:01
  • I'm using this parent component in router-outletif I use encapsulation: ViewEncapsulation.None then it is not taking other styles. here I want override only selected styles not all the styles Commented Oct 10, 2018 at 14:28
  • You can leverage ngStyle and Input to override the specific property. Demo link is updated as well. Please check same link. Commented Oct 10, 2018 at 14:43
  • It is not accepting if I write style class, if I write inline style it is accepting Commented Oct 10, 2018 at 16:53