Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Usage of angular-dialog-service
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
You can’t perform that action at this time.