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
PipeTransformOnDestroy
Constructors
constructor()
new IsDisplayPipe(cdr:
ChangeDetectorRef, isDisplayService:IsDisplayService):IsDisplayPipe
Source: lib/pipe/is-display.pipe.ts:33
Parameters
| Parameter | Type |
|---|---|
| cdr | ChangeDetectorRef |
| isDisplayService | IsDisplayService |
Returns
Methods
transform()
transform(value:
ValidOption):boolean
Source: lib/pipe/is-display.pipe.ts:48
Parameters
| Parameter | Type |
|---|---|
| value | ValidOption |
Returns
boolean
Implementation of
PipeTransform.transform
ngOnDestroy()
ngOnDestroy():
void
Source: lib/pipe/is-display.pipe.ts:54
Returns
void
Implementation of
OnDestroy.ngOnDestroy