how can we create a custom directive in angular code example Example: user defined directives in angular 7 import { Directive, ElementRef } from '@angular/core';