This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Commit ca60beb Marcy Sutton
committed
1 parent fb3623a commit ca60beb Copy full SHA for ca60beb
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,12 @@ function MdDialogDirective($$rAF, $mdTheming) {
76
76
* function AppController($scope, $mdDialog) {
77
77
* var alert;
78
78
* $scope.showAlert = showAlert;
79
+ * $scope.showDialog = showDialog;
79
80
* $scope.items = [1, 2, 3];
80
81
*
81
82
* // Internal method
82
83
* function showAlert() {
83
- * var alert = $mdDialog.alert({
84
+ * alert = $mdDialog.alert({
84
85
* title: 'Attention',
85
86
* content: 'This is an example of how easy dialogs can be!',
86
87
* ok: 'Close'
@@ -283,7 +284,7 @@ function MdDialogDirective($$rAF, $mdTheming) {
283
284
* - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
284
285
* Default true.
285
286
* - `controller` - `{string=}`: The controller to associate with the dialog. The controller
286
- * will be injected with the local `$hideDialog `, which is a function used to hide the dialog.
287
+ * will be injected with the local `$mdDialog `, which passes along a scope for the dialog.
287
288
* - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
288
289
* of values to inject into the controller. For example, `locals: {three: 3}` would inject
289
290
* `three` into the controller, with the value 3. If `bindToController` is true, they will be
You can’t perform that action at this time.
0 commit comments