I am still new on angularjs and have a question: How does the controller still know which module it registerred to on code snippet below (found on the Angular official document): JS
angular.module('App', []);
function Ctrl($scope) {
$scope.val = 1234.56789;
}
Html something like:
<html ng-app="App">
<body>
<div ng-controller="Ctrl">
........
</div>
</body>
</html>
I suspect there is something to do with bootstrap time and $scope available globally???
Thank you very much