Skip to content

Commit

Permalink
Removed booter.js and actually use the module that we already have
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgdorf committed Jun 3, 2012
1 parent 77b5478 commit bf606a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions architecture-examples/angularjs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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()">
Expand Down Expand Up @@ -47,7 +47,6 @@ <h1>Todos</h1>
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>
Expand Down
2 changes: 0 additions & 2 deletions architecture-examples/angularjs/js/booter.js

This file was deleted.

5 changes: 3 additions & 2 deletions architecture-examples/angularjs/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -92,4 +93,4 @@ App.Controllers.TodoController = function($scope) {
todo.done = markDone;
});
};
};
}]);

0 comments on commit bf606a0

Please sign in to comment.