provideIsDisplay()
Function
provideIsDisplay(breakpoints:
Breakpoints
):EnvironmentProviders
Configures names and sizes of breakpoints used by this module. For example
ts
{
small: 480,
medium: 800,
big: 1024,
};
These names can then be used for IsDisplayDirective, IsDisplayPipe and IsDisplayService.
To provide type-safety you need to define an application-specific extension using interface merging. For more information on this see ClfIsDisplay.Breakpoints
See
ClfIsDisplay.Breakpoints
Source: lib/display.provider.ts:20
Parameters
Parameter | Type |
---|---|
breakpoints | Breakpoints |
Returns
EnvironmentProviders