Skip to content

Instantly share code, notes, and snippets.

Mattanja Kern mattanja

Block or report user

Report or block mattanja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SampleController-angular-dialog-service.js
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
You can’t perform that action at this time.