clever-browser-detect

This module provides an AngularJS Service which you can use to detect browsers and OS.

Module License: MIT

Added by: Sam Deering

GitHub

Repository

cleverstack/clever-browser-detect

Stats

Stars: 7

Watchers: 7

Forks: 0

Author

CleverStack
CleverStack

Module Description

Cleverstack Browser Detect Module

This front-end module provides an AngularJS Service which you can use to detect browsers and OS.

Setup - Using CLI.

You can use CleverStack CLI for easy install.

Run the following command:

clever install clever-browserdetect

Setup - Manual.

  1. Add 'cs_browserdetect' to your app/modules/main.js file. It belongs in the package array at the top.

  2. Add cs_browserdetect to your app/modules/application/main.js file. It belongs in the array of required modules.

  3. Add cs_browserdetect to your app/modules/application/module.js file. cs_browserdetect belongs in your app module's array of required modules.

Usage

Include the service $CSBrowserDetectService into a controller and you can reference the following properties.

$CSBrowserDetectService.browser // Chrome Safari, Firefox, MSIE, Opera...

$CSBrowserDetectService.version // ie - 24, 28, 4.2...

$CSBrowserDetectService.OS // Windows, Mac, Linux, iPhone...

Testing

It sets up a view with a route you can test if you go to http://localhost/browserdetect.

Module stats last updated: 2015-06-04 11:08:45

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!