import { Directive , Inject , Input } from '@angular/core' ; @ Directive ( ) export abstract class NglCommonNotifyClose { @ Input ( ) set dismissible ( dismissible ) { this . host . dismissible = dismissible ; } constructor ( @ Inject ( 'host' ) private host ) { this . host . dismissible = true ; } }