Look at the code;
<!DOCTYPE html ng-app="helloWword">
<html>
<head>
<title>Ola Mundo</title>
<script src="angular.js"></script>
<script>
angular.module("helloWword", []);
angular.module("helloWword").controller("helloWwordCtrl", function ($scope) {
$scope.message = "Ola mundo";
});
</script>
</head>
<body>
<div ng-controller="helloWwordCtrl">
{{message}}
</div>
</body>
</html>
As you can see, I'm creating the model here in this line;
angular.module("helloWword", []);
And here I am causing the module to be localized;
angular.module("helloWword").controller("helloWwordCtrl", function ($scope) {
$scope.message = "ESTA APARECENDO NO SITE";
});
</script>
and the line of code was supposed to appear THIS IS APPEARING ON THE SITE on the browser screen, which is not what happens, it just appears {{message}}
What did I do wrong?