import { Attribute , Directive , NgZone } from '@angular/core' ; import { Platform } from '../../platform/platform' ; import { DisplayWhen } from './display-when' ; name description usage demo see {@link ../ShowWhen ShowWhen API Docs} see {@link ../../../platform/Platform Platform API Docs} @ Directive ( { selector : '[hideWhen]' , host : { '[class.hidden-hide-when]' : 'isMatch' } } ) export class HideWhen extends DisplayWhen { constructor ( @ Attribute ( 'hideWhen' ) hideWhen , plt , zone ) { super ( hideWhen , plt , zone ) ; } }