What does 'View Encapsulation' in Angular control?
- Code optimization
- Data encapsulation
- Routing configuration
- Styling scoping
'View Encapsulation' in Angular controls the scoping of styles for a component. It determines whether the styles defined in a component's styleUrls or inline styles are scoped to that component only or affect the entire application. It helps prevent style leakage and conflicts.
Loading...
Related Quiz
- What is the purpose of the [(ngModel)] syntax in template-driven forms?
- In a Route Guard, to navigate to a different route due to an authorization failure, you would typically use the router.______ method.
- Akita promotes the idea of separating UI state from ________ state.
- In NgRx, which entity describes the type and payload of an action that represents changes in the state?
- Lazy loading in Angular allows you to load feature modules on-demand using the ________ property in the route configuration.