Skip to content

IsDisplayPipe

Class

Converts the provided breakpoint-query to a boolean value depending on the current display size. For the breakpoint-queries passed to this directive please consult provideIsDisplay.

Example:

html
<span> {{ 'small' | clfIsDisplay }} </span>

The value automatically updates whenever the display size changes.

See

Source: lib/pipe/is-display.pipe.ts:28

Implements

  • PipeTransform
  • OnDestroy

Constructors

constructor()

new IsDisplayPipe(cdr: ChangeDetectorRef, isDisplayService: IsDisplayService): IsDisplayPipe

Source: lib/pipe/is-display.pipe.ts:33

Parameters

ParameterType
cdrChangeDetectorRef
isDisplayServiceIsDisplayService

Returns

IsDisplayPipe

Methods

transform()

transform(value: ValidOption): boolean

Source: lib/pipe/is-display.pipe.ts:48

Parameters

ParameterType
valueValidOption

Returns

boolean

Implementation of

PipeTransform.transform

ngOnDestroy()

ngOnDestroy(): void

Source: lib/pipe/is-display.pipe.ts:54

Returns

void

Implementation of

OnDestroy.ngOnDestroy