What is shadow dom?



What is shadow dom?..

Answer / Swarn Kant Gautam

Shadow DOM is a web standard that allows encapsulation of HTML, CSS, and JavaScript within an HTML element. It creates a new scope for styles and behaviors, isolating them from the rest of the page. This helps to prevent naming collisions and improves performance by reducing specificity issues in styling.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Why is namespace called "ng"?

1 Answers  


Explain ng-model directive angularjs?

1 Answers  


Explain $scope in angular?

1 Answers  


What is a scope in a project?

1 Answers  


What is primeng? How can it be used with angular 2?

1 Answers  


How AngularJS handle data binding?

1 Answers  


When should we use angular?

1 Answers  


What is zone in angular?

1 Answers  


Enlist major matchers available in jasmine?

1 Answers  


What is interceptor in angularjs?

1 Answers  


Write all the steps to configure an angular app(ng-app).

1 Answers  


What do you mean by module in angular 2?

1 Answers  


Categories