0
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 modem here on this line;
angular.module("helloWword", []);
And here I am getting the module located;
    angular.module("helloWword").controller("helloWwordCtrl", function ($scope) {
        $scope.message = "ESTA APARECENDO NO SITE";
    });
</script>
and by the line of code was to appear IS APPEARING ON THE SITE in the browser screen, and that’s not what happens, it just appears {{message}}
I wonder what I did wrong?
1.x or 2.x angular?
– pmargreff
Have you tried the
ng-app="helloWword"in the<body>? works for me... http://jsfiddle.net/s8wp9pob/– Sergio