Created
October 29, 2014 09:24
-
-
Save mattanja/4097249562274db91fc8 to your computer and use it in GitHub Desktop.
Usage of angular-dialog-service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xxx.controller('MyController', ['$scope', 'dialogs', function($scope, dialogs) { | |
$scope.remove = function() { | |
dialogs.confirm('Please confirm', 'Are you sure you want to remove this item?') | |
.result.then(function(btn) { | |
// Confirmed action | |
}, function(btn) { | |
// Cancel action | |
}); | |
}; | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment