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);