I am new to angularjs. I was trying the following code:
<html>
<body>
<script src='angular.min.js'> </script>
<div ng-app>
<span ng-controller="textController">{{greetMessage}}</span>
</div>
<script>
function textController($scope) {
$scope.greetMessage = 'Happy New Year!';
}
</script>
</body>
but it prints nothing. What error am I committing?