I'm trying to learn AngularJS and the first example I have tried does not work. Why? Here is the HTML:
<html ng-app>
<head>
<title></title>
<script src="Scripts/angular.js"></script>
<script src="app.js"></script>
</head>``
<body ng-controller="MainCtrl">
<div>Hello, {{userGroup.name}}!</div>
</body>
</html>
And here is the javascript (app.js
file) code:
var MainCtrl = function ($scope) {
$scope.userGroup = {
name: "Kirill Kuts"
};
}