As per Angular Docs the Directives of Angular are of 3 types:
- Components
- Structural
- Attribute
As per the following official link: https://angular.io/guide/attribute-directives#directives-overview
1. Components
<home></home>
<about-us></about-us>
<support></support>
2. Structural Directives
<div *ngIf="age < 18"> ... </div>
<div *ngFor="let x of students"> ... </div>
3. Attribute Directives
<div [ngClass]="red"> ... </div>
<div [ngStyle]="{'background':colorValue}> ... </div>
Now, my problem is that [(ngModel)] is a directive, but I am confused as it doesn't seem to fall in any of the above 3 categories (as per official documentation), and there is no 4th category! So, can someone point out what kind of directive is [(ngModel)]?