Commit a86c97b0 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #178 from cburgdorf/removeBooter

Removed booter.js and actually use the module that we already have
parents 77b54786 bf606a05
......@@ -10,7 +10,7 @@
<![endif]-->
</head>
<body>
<div ng-controller="App.Controllers.TodoController" id="todoapp">
<div ng-controller="TodoController" id="todoapp">
<header>
<h1>Todos</h1>
<form id="todo-form" ng-submit="addTodo()">
......@@ -47,7 +47,6 @@
Credits: <a href="http://twitter.com/cburgdorf">Christoph Burgdorf</a>, <a href="http://ericbidelman.com">Eric Bidelman</a>
</div>
<script src="../../assets/base.js"></script>
<script src="js/booter.js"></script>
<script src="js/libs/angular/angular.min.js"></script>
<script src="js/controllers.js"></script>
</body>
......
......@@ -2,7 +2,8 @@
var todomvc = angular.module('todomvc', []);
App.Controllers.TodoController = function($scope) {
todomvc.controller('TodoController',['$scope',function ($scope) {
$scope.todos = retrieveStore();
// Call updateStore() whenever the todos array changes.
......@@ -92,4 +93,4 @@ App.Controllers.TodoController = function($scope) {
todo.done = markDone;
});
};
};
}]);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment