import { Directive , HostListener , HostBinding } from "@angular/core" ; @ Directive ( { selector : "[mat-filter-item]" } ) export class FilterItemDirective { @ HostListener ( "click" , [ "$event" ] ) onClick ( e ) { e . stopPropagation ( ) ; e . preventDefault ( ) ; return false ; } }