What is shadow dom and virtual dom?



What is shadow dom and virtual dom?..

Answer / Akhilesh Soni

Shadow DOM is a web standard that allows encapsulation of an HTML document's styles, JavaScript, and HTML within the scope of its parent element. This enables developers to create custom components with isolation from global styles, improving performance and reusability. Virtual DOM, on the other hand, is a programming concept where an ideal or 'virtual' representation of a user interface (UI) is built and compared with the actual UI in the browser. By comparing and updating only the differences, Angular and other frameworks can optimize rendering speed and efficiency.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is injector bubbling?

1 Answers  


Can you write both angular 1 and angular 2 codes in a single project?

1 Answers  


What does angie mean?

1 Answers  


What is auto bootstrap process in AngularJS?

1 Answers  


What is singleton angular?

1 Answers  


What is a factory?

1 Answers  


Explain component decorators in angular 4?

1 Answers  


What is the difference between component and directive?

1 Answers  


Why angular is needed?

1 Answers  


What are the types of feature modules?

1 Answers  


Explain ng-init directive angularjs?

1 Answers  


What is xmb?

1 Answers  


Categories