angular-ua-parser

Lightweight Angular.js wrapper for User-Agent String Parser

npm install angular-ua-parser
7 downloads in the last week
12 downloads in the last month

angular-ua-parser

You can download angular-ua-parser by:

<script src="https://raw.github.com/faisalman/ua-parser-js/master/src/ua-parser.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.js"></script>
<script src="app/bower_components/angular-ua-parser/angular-ua-parser.js"></script>

<script>
  angular.module('YOUR_APP', [
    'ngUAParser',
    'controllers'
  ]);

  angular.module('controllers', [])
    .controller('MainCtrl', function($scope, UAParser) {
      $scope.getUA = function() {
        UAParser.getUA();
      };
    });
</script>
npm loves you