angular-bowser
Advanced tools
Weekly downloads
Changelog
0.0.4
Readme
This is a simple AngularJS service to provide browser information. It's heavily based on bowser code.
None except for AngularJS.
bower install --save angular-bowser
OR
npm install --save angular-bowser
Include src/angular-bowser.js in your html.
<script src="node_modules/angular-bowser/src/angular-bowser.js"></script>
Add the angular-bowser module as a dependency to your application module:
angular.module('MyApp', ['jlareau.bowser']);
Inject the service where you need it. A good place is in the run section of your application.
angular.module('MyApp')
.run(['bowser', function(bowser) {
if ( bowser.msie && bowser.version <= 6 ) {
alert(`${bowser.name}, Seriously?!`);
}
}]);
Example of properties are: firefox, chrome, msie, opera, android, ios, safari
The browser version is always in the version property.
For more information, please check bowser.
FAQs
AngularJS browser detection kit
The npm package angular-bowser receives a total of 706 weekly downloads. As such, angular-bowser popularity was classified as not popular.
We found that angular-bowser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.