I'm trying to make my first AngularJS project. I'm having problems with the project configuration. First i created a Java project AngularJSExample. Then I converted it to AngularJS project.I have configured script paths for Tern projects. The hello.html doesn't know what is greeting. Can you please tell me why?
These are my files:
<html ng-app> <head> <script src="angular.js"></script> <script src="controllers.js"></script> </head> <body> <div ng-controller='HelloController'> <p>{{greeting.text}}, World</p> </div> </body> </html> var myController = angular.module('myApp',[]); myController.controller('HelloController', ['$scope', function($scope) { $scope.greeting ={ text : 'Hello' }; }]);