I've just started delving into Angular.js with the book "Angular.js OReilly". I'm attempting to work on the initial examples provided in the book. Following the instructions, I downloaded Angular.js from the official website and created my controller.js file as directed. However, every time I try to run it, I keep encountering an error mentioned in the title.
Here is a brief overview of what I have done:
<html ng-app>
<head>
<script src="angular.min.js"></script>
<script src="controllers.js"></script>
</head>
<body>
<div ng-controller='HelloController'>
<p>{{greeting.text}}, World</p>
</div>
</body>
</html>
function HelloController($scope) {
console.log("a");
$scope.greeting = { text: 'Hello' };
}