diff options
| author | James Roome | 2014-02-20 16:06:52 -0600 |
|---|---|---|
| committer | Caitlin Potter | 2014-02-20 17:12:52 -0500 |
| commit | 2a37690f709391d5bcd4186809046676100bd98f (patch) | |
| tree | fb699f6e24bbfc036ea8907d0c6eca4a6125935f /src/ng | |
| parent | 45304a9d683128261791461f4dc47a180444b5b0 (diff) | |
| download | angular.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.js | 6 |
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 = ''; } }; } |
