The following code is not producing the expected output of 'Hello, World' output: {{ greetings.text }}, world
Could someone please assist me in determining why it is not displaying 'hello, world' as intended
<!doctype html>
<html ng-app>
<head>
<meta charset="utf-8">
<title>Angular JS App 1</title>
<script type="text/javascript" src="angular-v1.4.js"></script>
<script type="text/javascript" src="controllers.js"></script>
</head>
<body>
<div ng-controller='HelloController'> //controller
<p>{{ greetings.text }}, World</p>
</div>
</body>
</html>
Script for controller:
function HelloController($scope){
$scope.greetings = {text : 'hello'};
}