create directive angular code example
Example 1: angular directive output
// just use it normal
@Output() itch:EventEmitter<any> = new EventEmitter();
//and call in html
<div appCollar (itch)='scratch()' >
Example 2: custom directives in angular 8
<h1 appHightlight>Highlight Me !</h1>
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