ngx-dom-wrappers
Prerequisites
- Node
- npm or yarn.
About
Angular library providing wrappers for dom types.
Table of Contents
Installation
npm install ngx-dom-wrappers
or
yarn add ngx-dom-wrappers
Usage
- Import
DomWrappersModule
inAppModule
orCoreModule
of your application.
AppModule
CoreModule
- Use wrappers in your code
constructor @InjectWINDOW windowWrapper: any, @InjectLOCAL_STORAGE localStorageWrapper: any, @InjectSESSION_STORAGE sessionStorageWrapper: any,
Resources
- Docs: https://spaier.github.io/ngx-dom-wrappers
- CoreModule: https://angular.io/guide/styleguide#core-feature-module
License
MIT