Which technique in Angular allows you to encapsulate styles and templates so that they don't affect other parts of the application?

  • Angular Modules.
  • Angular Services.
  • Angular Components.
  • Angular ViewEncapsulation.
Angular's ViewEncapsulation technique allows you to encapsulate styles and templates for a component so that they don't affect other parts of the application. It provides options like Emulated, None, and Shadow DOM, which control how styles are scoped to a component. The other options, such as Angular Modules and Components, serve different purposes in Angular and do not specifically address style and template encapsulation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *