add directives to component angular 6 code example Example: custom directives in angular 8 <h1 appHightlight>Highlight Me !</h1>