I have an input text field like this
and my dire
Try this.
import {Directive, SimpleChanges} from '@angular/core'; @Directive({ selector: '[inputTextFilter]' }) export class MyDirective { @Input('inputTextFilter') params: string; constructor(){} ngOnInit(){ console.log(this.params) } }