Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- function _window() : any {
- // return the global native browser window object
- return window;
- }
- @Injectable()
- export class WindowRef {
- get nativeWindow() : any {
- return _window();
- }
- }
Add Comment
Please, Sign In to add comment