Last active
February 27, 2019 06:00
-
-
Save GeoffMahugu/b793f7cbac4cbfdb981c5ee6e07439b7 to your computer and use it in GitHub Desktop.
Angular Fire Auth Window Service
This file contains hidden or 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'; | |
function _window(): any { | |
return window; | |
} | |
@Injectable() | |
export class WindowService { | |
constructor() { } | |
get nativeWindow(): any { | |
return _window(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment