0.0.2 • Published 5 years ago

browser-globals v0.0.2

Weekly downloads
790
License
MIT
Repository
github
Last release
5 years ago

BrowserGlobals

A small lightweight angular service for prowser global variables like "window" or "browser" This library was generated with Angular CLI version 7.2.0.

Getting Started

After installing it import the BrowserGlobalsService for a singleton instance of the classic browser global variables

import {BrowserGlobalsService} from 'browser-globals';
...
constructor(private browserGlobals: BrowserGlobalsService) { }
...
const window = this.browserGlobals.windowRef();
..

Installing

In your Angular project run

npm i -save  browser-globals

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments