Created
August 4, 2016 05:56
-
-
Save dewwwald/604ae753b2d7d80f9ef55099949fc903 to your computer and use it in GitHub Desktop.
Angular2 service for document
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 { document } from '@angular/platform-browser/src/facade/browser'; | |
@Injectable() | |
export class DocumentService | |
{ | |
constructor(){} | |
get nativeDocument() : Document | |
{ | |
return document; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment