1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 2 2 | /*global angular */ /** * The main TodoMVC app module * * @type {angular.Module} */ angular.module('todomvc', ['ngRoute']) .config(function ($routeProvider) { 'use strict'; $routeProvider.when('/', { controller: 'TodoCtrl', templateUrl: 'todomvc-index.html' }).when('/:status', { controller: 'TodoCtrl', templateUrl: 'todomvc-index.html' }).otherwise({ redirectTo: '/' }); }); |