I am taking baby steps in learning AngularJS to act as a front end with my Python/Django projects. I just wrote a simple AngularJS page as below.
The expected output of the code is Joe is 35 years old.
while the actual output of the code is {{ person.name }} is {{ person.age }} years old.
The code is as below.
<html>
<body ng-app="scrumboard.demo">
<div ng-controller="ScrumboardController">
<p>{{ person.name }} is {{ person.age }} years old.</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.10/angular.min.js"></script>
<script>
(function() {
'use strict';
angular.module('scrumboard.demo', [])
.controller('ScrumboardController', ['$scope', ScrumboardController]);
function ScrumboardController($scope) {
$scope.person = {
name = 'Joe',
age = 35
};
}());
</script>
</body>
</html>