diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js index ea65be904e57..191f67cb4150 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 = ''; } }; }