AngularJS & Modernizr
From http://www.techsfo.com/blog/2014/09/angularjs-and-modernizr/
var myControllers = angular.module('myApp.controllers', []);
myControllers.constant("Modernizr", Modernizr);
myControllers.controller('MainCtrl', ['$scope', 'Modernizr', function($scope, Modernizr) {
// check if browser supports HTML5 features
$scope.browser = {
supportNumberInput: Modernizr.inputtypes.number
};
}]);