Code coverage report for js/app.js

Statements: 100% (2 / 2)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (2 / 2)      Ignored: none     

All files » js/ » app.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22              3       3                    
/*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: '/'
		});
	});