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 |
What is injector bubbling?
Can you write both angular 1 and angular 2 codes in a single project?
What does angie mean?
What is auto bootstrap process in AngularJS?
What is singleton angular?
What is a factory?
Explain component decorators in angular 4?
What is the difference between component and directive?
Why angular is needed?
What are the types of feature modules?
Explain ng-init directive angularjs?
What is xmb?