aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
authorJames Roome2014-02-20 16:06:52 -0600
committerCaitlin Potter2014-02-20 17:12:52 -0500
commit2a37690f709391d5bcd4186809046676100bd98f (patch)
treefb699f6e24bbfc036ea8907d0c6eca4a6125935f /src/ng
parent45304a9d683128261791461f4dc47a180444b5b0 (diff)
downloadangular.js-2a37690f709391d5bcd4186809046676100bd98f.tar.bz2
docs(ngSubmit): reference correct object ($scope) in example.
Switched from this to $scope. It's confusing using $scope and this interchangeably. Closes #6375
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/directive/ngEventDirs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js
index ea65be90..191f67cb 100644
--- a/src/ng/directive/ngEventDirs.js
+++ b/src/ng/directive/ngEventDirs.js
@@ -313,9 +313,9 @@ forEach(
$scope.list = [];
$scope.text = 'hello';
$scope.submit = function() {
- if (this.text) {
- this.list.push(this.text);
- this.text = '';
+ if ($scope.text) {
+ $scope.list.push(this.text);
+ $scope.text = '';
}
};
}