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

Commit 9683d66

Browse files
miensolThomasBurleson
authored andcommitted
feat(docs): Use $scope instead of scope
To avoid confusion I guess it would be good to keep the examples consistent. While `scope` in `DialogController` will be the same as `$scope` it brings confusion to the reader. The fix also includes missing `}` mentioned here: Here's a working pen: http://codepen.io/anon/pen/ZGWOpZ. Fixes #2788. Closes #2836.
1 parent 0729587 commit 9683d66

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/dialog/dialog.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ function MdDialogDirective($$rAF, $mdTheming) {
128128
* },
129129
* controller: DialogController
130130
* });
131-
* function DialogController(scope, $mdDialog, items) {
132-
* scope.items = items;
133-
* scope.closeDialog = function() {
131+
* function DialogController($scope, $mdDialog, items) {
132+
* $scope.items = items;
133+
* $scope.closeDialog = function() {
134134
* $mdDialog.hide();
135135
* }
136136
* }
137137
* }
138-
*
138+
* }
139139
* })(angular);
140140
* </hljs>
141141
*

0 commit comments

Comments
 (0)