'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', [
	'myApp.employeesList',
	'myApp.assetsList',
	'myApp.createChecklist',
	'myApp.editChecklist',
	'myApp.version',
	'myApp.login',
	'myApp.services',
	'myApp.directives',
	'myApp.todo'

]).
config(['$routeProvider', function ($routeProvider) {
	$routeProvider.otherwise({redirectTo: '/showChecklist'});

	$routeProvider.when('/createChecklist', {
		templateUrl: 'modules/createChecklist/createChecklist.html',
		controller: 'createChecklistCtrl'
	});

	$routeProvider.when('/editChecklist', {
		templateUrl: 'modules/editChecklist/editChecklist.html',
		controller: 'editChecklistCtrl'
	});

	$routeProvider.when('/assetsList', {
		templateUrl: 'modules/assetsList/assetsList.html',
		controller: 'assetsListCtrl'
	});

	$routeProvider.when('/employeesList', {
		templateUrl: 'modules/employeesList/employeesList.html',
		controller: 'employeesListCtrl'
	});

	$routeProvider.when('/employee', {
			templateUrl: 'modules/employee/employee.html',
			controller: 'employeeCtrl'
	});

	$routeProvider.when('/asset', {
		templateUrl: 'modules/asset/asset.html',
		controller: 'assetCtrl'
	});

	$routeProvider.when('/login', {
		templateUrl: 'modules/login/login.html',
		controller: 'LoginCtrl'
	});
	$routeProvider.when('/todo', {
		templateUrl: 'modules/todo/todo.html',
		controller: 'todoCtrl'
	});
}]);
	'ngRoute',
	'myApp.employee',