User-719153870 posted
Hi erum,
angular.js:15567 Error: [$controller:ctrlreg] The controller with the name 'FunctionHelloworld' is not registered.
I think in Angular, it's a different way to define a controller than:
<script>
function FunctionHelloworld($scope) {
$scope.message = "ERum";
}
</script>
First of all, you need to specify a range with ng-app and then specify the controller name with ng-controller.
Please refer to AngularJS Controllers for more information about how to use AngualrJS controllers.
Also, your code can be modefied like below:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
</head>
<body ng-app="myApp">
<div ng-controller="FunctionHelloworld">
Hello:
{{message}}
</div>
<script>
angular.module('myApp', []).controller('FunctionHelloworld', function ($scope) {
$scope.message = "ERum";
});
</script>
</body>
</html>
You can see the result below:

Best Regard,
Yang Shen