Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
docs(dialog): fix code example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
antonellopasella authored and pkozlowski-opensource committed Feb 25, 2013
1 parent ce3966c commit 2cae473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Example:

app.controller('MainCtrl', function($dialog, $scope) {
$scope.deleteItem = function(item){
var msgbox = $dialog.messageBox('Delete Item', 'Are you sure?', [{label:'Yes, I'm sure, result: 'yes'},{label:'Nope', result: 'no'}]);
var msgbox = $dialog.messageBox('Delete Item', 'Are you sure?', [{label:'Yes, I\'m sure', result: 'yes'},{label:'Nope', result: 'no'}]);
msgbox.open().then(function(result){
if(result === 'yes') {deleteItem(item);}
});
Expand Down

0 comments on commit 2cae473

Please sign in to comment.