I'm new to angularJS and I am stuck on a basic step. I'm following the video tutorial and I can't even get a simple binding to work. For some reason, my output is still just the string {{totalTodos}} and not the value 4. What am I doing wrong? I am editing in jetbrains webstorm and I downloaded the angular library through the CDN link if thats relevant.
My index.html:
<!doctype HTML>
<html ng-app>
<head lang="en">
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<script type="text/javascript" src="todo.js"></script>
<link rel="stylesheet" href="bootstrap-3.3.1-dist/dist/css/bootstrap.css">
</head>
<body>
<div ng-controller="TodoCtrl">
{{totalTodos}}
</div>
</body>
</html>`
My todo.js:
function TodoCtrl($scope) {
$scope.totalTodos = 4;
}