InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between structural directive and attribute directive in Angular 7? |
|
Answer» Structural directive The main function of the structural directive is to shape and re-shape the HTML LAYOUT, and DOM’s structure. The MODIFICATION and customization of HTML layout are done by ADDING, removing and manipulating the selected HTML elements. Attribute DIRECTIVESThe attribute directive has its own layout view and styles because it has a single component on a host ELEMENT but it supports multiple directives. |
|