Directives are classes, adding behaviour to elements in Angular. In theory, Components are directives, too, but we’ll consider “attribute directives” here.
Applying directives can be as easy as: <p [appHighlight]="color">Highlight me!</p>
Directives are classes, adding behaviour to elements in Angular. In theory, Components are directives, too, but we’ll consider “attribute directives” here.
Applying directives can be as easy as: <p [appHighlight]="color">Highlight me!</p>