diff options
| -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 = ''; } }; } |
