This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global todomvc, angular */ | |
'use strict'; | |
/** | |
* The main controller for the app. The controller: | |
* - retrieves and persists the model via the todoStorage service | |
* - exposes the model to the template and provides event handlers | |
*/ | |
todomvc.controller('TodoCtrl', function TodoCtrl($scope, $location, $filter, todoStorage) { | |
var todos = $scope.todos = todoStorage.get(); |