0.1.0 • Published 7 years ago
ngx-bowser v0.1.0
ngx-bowser
A wrap service for bowser
It works with angular version 2.0.0 and up
Dependencies
- Angular >=2.0.0
- bowser
Install
You can get it on npm.
npm install ngx-bowser --save
Build project
1. npm i
2. npm run build
why ?
It is AoT compatible, so you don't need to worry about how to deal with 3rd party library with AoT.
It also comes with better type definition.
How to use:
in ngModule:
imports: [BowserModule],
providers: [BowserService],
It provides all apis that bowser provides.
It also allows you to access bowser directly by BowserService.bowser
Additional Features:
BowserService.profile
: return a string of "browser-version (user agent)"BowserService.userAgent
: return window.navigator.userAgent
0.1.0
7 years ago
0.0.1-beta4
7 years ago
0.0.1-beta3
7 years ago
0.0.1-beta2
7 years ago
0.0.1-beta1
7 years ago
0.0.1-beta
7 years ago