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

Commit 1f87486

Browse files
fix(dialog): update resolve section to new syntax
Closes #126
1 parent a2a8f34 commit 1f87486

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/dialog/dialog.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,15 @@ dialogModule.provider("$dialog", function(){
249249
// * `label`: the label of the button
250250
// * `cssClass`: additional css class(es) to apply to the button for styling
251251
messageBox: function(title, message, buttons){
252-
return new Dialog({templateUrl: 'template/dialog/message.html', controller: 'MessageBoxController', resolve: {model: {
253-
title: title,
254-
message: message,
255-
buttons: buttons
256-
}}});
252+
return new Dialog({templateUrl: 'template/dialog/message.html', controller: 'MessageBoxController', resolve:
253+
{model: function() {
254+
return {
255+
title: title,
256+
message: message,
257+
buttons: buttons
258+
};
259+
}
260+
}});
257261
}
258262
};
259263
}];
File renamed without changes.

0 commit comments

Comments
 (0)