import { Directive , HostBinding } from '@angular/core' ; @ Directive ( { selector : '[secrets-box-input]' , } ) export class SecretsBoxInputDirective { @ HostBinding ( ) type : string ; constructor ( ) { this . type = 'password' ; } changeType ( type ) { this . type = type ; } }