Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit ca60beb

Browse files
author
Marcy Sutton
committed
docs(mdDialog): update controller docs
Closes #1449
1 parent fb3623a commit ca60beb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/dialog/dialog.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ function MdDialogDirective($$rAF, $mdTheming) {
7676
* function AppController($scope, $mdDialog) {
7777
* var alert;
7878
* $scope.showAlert = showAlert;
79+
* $scope.showDialog = showDialog;
7980
* $scope.items = [1, 2, 3];
8081
*
8182
* // Internal method
8283
* function showAlert() {
83-
* var alert = $mdDialog.alert({
84+
* alert = $mdDialog.alert({
8485
* title: 'Attention',
8586
* content: 'This is an example of how easy dialogs can be!',
8687
* ok: 'Close'
@@ -283,7 +284,7 @@ function MdDialogDirective($$rAF, $mdTheming) {
283284
* - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
284285
* Default true.
285286
* - `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.
287288
* - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
288289
* of values to inject into the controller. For example, `locals: {three: 3}` would inject
289290
* `three` into the controller, with the value 3. If `bindToController` is true, they will be

0 commit comments

Comments
 (0)