UNPKG

ng-cordova

Version:

[ngCordova](http://ngcordova.com/) ==========

24 lines (17 loc) 635 B
// install : cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git // link : https://github.com/EddyVerbruggen/cordova-plugin-actionsheet angular.module('ngCordova.plugins.actionSheet', []) .factory('$cordovaActionSheet', ['$q', '$window', function ($q, $window) { return { show: function (options) { var q = $q.defer(); $window.plugins.actionsheet.show(options, function (result) { q.resolve(result); }); return q.promise; }, hide: function () { return $window.plugins.actionsheet.hide(); } }; }]);