Can anyone explain how to use ViewEncapsulation in angular with example?
ViewEncapsulation determines whether the styles defined in a particular component will affect the entire application or not.
Angular supports 3 types of ViewEncapsulation:
1) Emulated – Styles used in other HTML spread to the component
2) Native – Styles used in other HTML doesn’t spread to the component
3) None – Styles defined in a component are visible to all components of the application
pre
& code
tags ):