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