What are directives? Angular lets you extend HTML with new attributes called directives. There are two other kinds of Angular directives, 1. Components 2. Attribute directives Stayed Informed - Angular 4 vs. Angular 2 What are structural directives? The “Structural directives” are responsible for HTML layout. They shape or reshape the DOM structure; it is using for adding, removing and manipulating the elements. The “Structural directives” is used to enable an element as a template for creating additional elements. If you want to create structural directive that time you should have knowledge of <template> elements and structural directives are easy to recognize. The two familiar examples of structural directive as, 1. *ngIf 2. *ngfor An asterisk ( * ) precedes the directive attribute name as 1 ...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers