I'm currently delving into the world of AngularJS and I encountered an issue with my first example. Why is it not working as expected? Here's a look at the HTML snippet:
<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>
Moreover, here's a glimpse of the javascript code inside the app.js
file:
var MainCtrl = function ($scope) {
$scope.userGroup = {
name: "Kirill Kuts"
};
}