I have this very simple Angular example:
<html ng-app>
<head>
<title>Angular Test</title>
</head>
<body ng-controller='myController'>
<h1>Angular Test</h1>
<p>{{hello.text}}</p>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js'></script>
<script>
function myController ($scope) {
$scope.hello = {text : 'Hello World!'};
}
</script>
</body>
</html>
As you can see I'm using Angular from the CDI. Though when I view this in my browser I get the following error:
Error: [ng:areq] http://errors.angularjs.org/1.3.16/ng/areq?p0=myController&p1=not%20a%20function%2C%20got%20undefined
at Error (native)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:6:417
at Sb (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:19:510)
at La (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:20:78)
at $get (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:75:465)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:57:178
at q (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:7:428)
at M (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:57:45)
at g (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:51:409)
at g (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js:51:426)
I've literally just started with Angular so this might very well be a very noob mistake.