Created
August 4, 2016 05:53
-
-
Save dewwwald/ab845be6027d64a9b5e00c22a6511950 to your computer and use it in GitHub Desktop.
Angular2 Service for window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from '@angular/core' | |
import { window } from '@angular/platform-browser/src/facade/browser'; | |
@Injectable() | |
export class WindowService | |
{ | |
constructor(){} | |
get nativeWindow() : Window | |
{ | |
return window; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment