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 |
What is angular stack?
What are pipes in angular 2?
What are the new features in angular 4?
What is es6?
What is directive in angular?
What is display:block and display:none?
Is .value() the proper way to set app-wide constant and how to retrieve it in a controller?
What are the attributes that can be used during the creation of a new angularjs directives?
What is angular model?
What Are The Security Features Provided By AngularJS?
Is mvc front end or backend?
What are services in angular 2?