diff options
Diffstat (limited to 'src/service/compiler.js')
| -rw-r--r-- | src/service/compiler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service/compiler.js b/src/service/compiler.js index c663baac..acfc7851 100644 --- a/src/service/compiler.js +++ b/src/service/compiler.js @@ -49,9 +49,9 @@ }) }); - function Ctrl() { - this.name = 'Angular'; - this.html = 'Hello {{name}}'; + function Ctrl($scope) { + $scope.name = 'Angular'; + $scope.html = 'Hello {{name}}'; } </script> <div ng-controller="Ctrl"> |
