Rename templates into views. Fix paths to static files.

This commit is contained in:
Alexis Lahouze 2016-02-17 08:54:44 +01:00
parent ea1b5957c0
commit 29bc9ed559
4 changed files with 3 additions and 3 deletions

View File

@ -54,17 +54,17 @@ angular.module('accountant', [
// Defining template and controller in function of route. // Defining template and controller in function of route.
$routeProvider $routeProvider
.when('/account/:accountId/operations', { .when('/account/:accountId/operations', {
templateUrl: 'static/templates/operations.html', templateUrl: 'static/views/operations.html',
controller: 'OperationController', controller: 'OperationController',
controllerAs: 'operationsCtrl' controllerAs: 'operationsCtrl'
}) })
.when('/account/:accountId/scheduler', { .when('/account/:accountId/scheduler', {
templateUrl: 'static/templates/scheduler.html', templateUrl: 'static/views/scheduler.html',
controller: 'SchedulerController', controller: 'SchedulerController',
controllerAs: 'schedulerCtrl' controllerAs: 'schedulerCtrl'
}) })
.when('/accounts', { .when('/accounts', {
templateUrl: 'static/templates/accounts.html', templateUrl: 'static/views/accounts.html',
controller: 'AccountController', controller: 'AccountController',
controllerAs: 'accountsCtrl' controllerAs: 'accountsCtrl'
}) })