A service that can be used to detect a specific device.
bower install angular-device --save
Reference the module in your app.
(function() {
angular
.module( 'someApp', [
'angular.device'
] );
})();Inject the Device service where you need it and access one of the following properties:
- Device.isAndroid
- Device.isIphone
- Device.isIpad
- Device.isIpod
- Device.isIos
1.0.0
- First stable release of angular-device.