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

Commit 2a37690

Browse files
RefuXcaitp
authored andcommitted
docs(ngSubmit): reference correct object ($scope) in example.
Switched from this to $scope. It's confusing using $scope and this interchangeably. Closes #6375
1 parent 45304a9 commit 2a37690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/directive/ngEventDirs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ forEach(
313313
$scope.list = [];
314314
$scope.text = 'hello';
315315
$scope.submit = function() {
316-
if (this.text) {
317-
this.list.push(this.text);
318-
this.text = '';
316+
if ($scope.text) {
317+
$scope.list.push(this.text);
318+
$scope.text = '';
319319
}
320320
};
321321
}

0 commit comments

Comments
 (0)