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 @@ ...@@ -10,7 +10,7 @@
<![endif]--> <![endif]-->
</head> </head>
<body> <body>
<div ng-controller="App.Controllers.TodoController" id="todoapp"> <div ng-controller="TodoController" id="todoapp">
<header> <header>
<h1>Todos</h1> <h1>Todos</h1>
<form id="todo-form" ng-submit="addTodo()"> <form id="todo-form" ng-submit="addTodo()">
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
Credits: <a href="http://twitter.com/cburgdorf">Christoph Burgdorf</a>, <a href="http://ericbidelman.com">Eric Bidelman</a> Credits: <a href="http://twitter.com/cburgdorf">Christoph Burgdorf</a>, <a href="http://ericbidelman.com">Eric Bidelman</a>
</div> </div>
<script src="../../assets/base.js"></script> <script src="../../assets/base.js"></script>
<script src="js/booter.js"></script>
<script src="js/libs/angular/angular.min.js"></script> <script src="js/libs/angular/angular.min.js"></script>
<script src="js/controllers.js"></script> <script src="js/controllers.js"></script>
</body> </body>
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
var todomvc = angular.module('todomvc', []); var todomvc = angular.module('todomvc', []);
App.Controllers.TodoController = function($scope) { todomvc.controller('TodoController',['$scope',function ($scope) {
$scope.todos = retrieveStore(); $scope.todos = retrieveStore();
// Call updateStore() whenever the todos array changes. // Call updateStore() whenever the todos array changes.
...@@ -92,4 +93,4 @@ App.Controllers.TodoController = function($scope) { ...@@ -92,4 +93,4 @@ App.Controllers.TodoController = function($scope) {
todo.done = markDone; 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