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