angular 10 directive with 2 input code example Example: user defined directives in angular 7 import { Directive, ElementRef } from '@angular/core';