ngx-bowser
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Commitizen friendly semantic-release travis build npm GitHub release npm

ngx-bowser

A wrap service for bowser

It works with angular version 2.0.0 and up

Dependencies

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:

  1. BowserService.profile: return a string of "[browser]-version"

  2. BowserService.userAgent: return window.navigator.userAgent

/ngx-bowser/

    Package Sidebar

    Install

    npm i ngx-bowser

    Weekly Downloads

    113

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • maxisam