Recently, I followed a tutorial and implemented the code provided. Inside the angular folder in my libs directory, I have the minified version of Angular JS obtained from https://angularjs.org/. However, the output I am seeing is:
{{author.name}}
{{author.title + ', ' + author.company }}
I am facing some issue here. Can someone please assist? Thank you!
<html lang="en" ng-app=>
<head>
<title>Angular Demo</title>
<script type="text/javascript" src="lib/angular/angular.min.js"></script>
</head>
<body>
<div ng-controller="MyController">
<h1>{{author.name}}</h1>
<p>{{author.title + ', ' + author.company }}</p>
</div>
<script>
function MyController($scope)
{
$scope.author = {
'name':'aaa',
'title': 'bbb',
'company':'ccc'
}
}
</script>
</body>
</html>