src/helpers/window.helper.ts
A utility service for working with the window object in Angular applications.
This service provides methods to retrieve the window object, the href location object, and touch capabilities.
Example :Or instance a new class const getWindow = new GetWindow()
const window = this.getWindow.window(); const href = this.getWindow.href(); const touch = this.getWindow.touch();]
Methods |
constructor(document: Document)
|
||||||||
Defined in src/helpers/window.helper.ts:24
|
||||||||
Initializes a new instance of the
Parameters :
|
href |
href()
|
Defined in src/helpers/window.helper.ts:44
|
Allow to get the href location object inside ssr
Returns :
string | URL
|
touch |
touch()
|
Defined in src/helpers/window.helper.ts:56
|
Allow to get the origin location object inside ssr
Returns :
boolean
|
window |
window()
|
Defined in src/helpers/window.helper.ts:36
|
Allow to get the window object inside ssr
Returns :
| null
|