src/core/smart-screen.service.ts
A service that monitors the screen size and publishes changes to subscribers
Properties |
|
Methods |
constructor()
|
dimensionsAre | ||||||||||||||||
dimensionsAre(dimensions: Dimensions, size: string | ScreenSize, scaleFactor: number)
|
||||||||||||||||
Parameters :
Returns :
boolean
boolean |
getDimensionsCategory | ||||||||||||
getDimensionsCategory(dimensions?: Dimensions, scaleFactor: number)
|
||||||||||||
Parameters :
Returns :
string
string |
windowIs | ||||||||
windowIs(size: string | ScreenSize)
|
||||||||
Returns true if the current window size greater than or equal to the given string.
Parameters :
Returns :
boolean
|
Static Readonly allScreenSizes |
Type : []
|
Default value : ['xs', 'sm', 'md', 'lg', 'xl']
|
windowSize |
Type : BehaviorSubject<WindowSize>
|
Default value : new BehaviorSubject<WindowSize>(
this.screenSize
)
|