Guest User

Untitled

a guest
Jan 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2.  
  3. function _window() : any {
  4. // return the global native browser window object
  5. return window;
  6. }
  7.  
  8. @Injectable()
  9. export class WindowRef {
  10. get nativeWindow() : any {
  11. return _window();
  12. }
  13. }
Add Comment
Please, Sign In to add comment