create directive in angular 9 code example
Example 1: custom directives in angular 8
<h1 appHightlight>Highlight Me !</h1>
Example 2: user defined directives in angular 7
import { Directive, ElementRef } from '@angular/core';
Example 3: user defined directives in angular 7
<p [ngStyle]="{`THE CSS YOPU WANT TO ADD`}"> I am an Attribute Directive</p>
Example 4: change specific element style angular directive
content_copy
ng generate directive highlight