What is shadow dom? How is it helping angular 2 to perform better?



What is shadow dom? How is it helping angular 2 to perform better?..

Answer / Manish Rawat

Shadow DOM (DOM stands for Document Object Model) is a web standard that allows a web developer to wrap an HTML element and all its child nodes in a separate container, hiding them from the rest of the document tree. This technique is known as 'shadowing'.nIn Angular 2, Shadow DOM helps in improving performance by encapsulating the component's styles, thereby preventing style collisions with other components or global CSS. Additionally, it ensures that a component's style doesn't affect the rest of the application and vice versa.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is angular stack?

1 Answers  


What are pipes in angular 2?

1 Answers  


What are the new features in angular 4?

1 Answers  


What is es6?

1 Answers  


What is directive in angular?

1 Answers  


What is display:block and display:none?

1 Answers  


Is .value() the proper way to set app-wide constant and how to retrieve it in a controller?

1 Answers  


What are the attributes that can be used during the creation of a new angularjs directives?

1 Answers  


What is angular model?

1 Answers  


What Are The Security Features Provided By AngularJS?

1 Answers  


Is mvc front end or backend?

1 Answers  


What are services in angular 2?

1 Answers  


Categories