From 06ca00e627de8b11ffaf986ea64397a0f7b8e631 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 7 Jul 2017 22:36:04 +0200 Subject: [PATCH] Move templates in routing. Module import order. --- src/app.config.js | 4 ++++ src/app.js | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app.config.js b/src/app.config.js index 1d051d5..b3400dd 100644 --- a/src/app.config.js +++ b/src/app.config.js @@ -1,3 +1,7 @@ +var operationsTmpl = require('./operations/operations.html'); +var accountsTmpl = require('./accounts/accounts.html'); +var schedulerTmpl = require('./scheduler/scheduler.html'); + module.exports = function($routeProvider) { // Defining template and controller in function of route. $routeProvider diff --git a/src/app.js b/src/app.js index 433f947..b4b2d47 100644 --- a/src/app.js +++ b/src/app.js @@ -31,14 +31,10 @@ var routing = require('./app.config'); require('bootstrap-webpack!./bootstrap.config.js'); -var operationsTmpl = require('./operations/operations.html'); -var accountsTmpl = require('./accounts/accounts.html'); -var schedulerTmpl = require('./scheduler/scheduler.html'); - angular.module('accountant', [ + ngRoute, accountModule, loginModule, operationModule, schedulerModule, - ngRoute, ]).config(routing);