Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    angular-ua-parserpublic

    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> 

    Keywords

    none

    install

    npm i angular-ua-parser

    Downloadsweekly downloads

    11

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar