From dcce124a4d7461791545d3da4b2bab9ff1c24bd9 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 8 Feb 2016 00:20:36 +0100 Subject: [PATCH] Use angular.module instead of variable. --- accountant/frontend/static/js/accounts.js | 2 +- accountant/frontend/static/js/app.js | 2 +- accountant/frontend/static/js/operations.js | 2 +- accountant/frontend/static/js/scheduler.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index f6c695e..a814d0d 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -17,7 +17,7 @@ // vim: set tw=80 ts=2 sw=2 sts=2: 'use strict'; -accountantApp +angular.module('accountant') .factory('Account', ['$resource', function($resource) { var Account = $resource( diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 144f7ea..9985eee 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -17,7 +17,7 @@ // vim: set tw=80 ts=2 sw=2 sts=2: 'use strict'; -var accountantApp = angular.module("accountantApp", [ +angular.module('accountant', [ 'ngResource', 'ngRoute', 'mgcrea.ngStrap', 'highcharts-ng', diff --git a/accountant/frontend/static/js/operations.js b/accountant/frontend/static/js/operations.js index c75f17c..2a16636 100644 --- a/accountant/frontend/static/js/operations.js +++ b/accountant/frontend/static/js/operations.js @@ -17,7 +17,7 @@ // vim: set tw=80 ts=2 sw=2 sts=2: 'use strict'; -accountantApp +angular.module('accountant') .factory('Operation', [ '$resource', function($resource) { return $resource( diff --git a/accountant/frontend/static/js/scheduler.js b/accountant/frontend/static/js/scheduler.js index db4697a..1eba606 100644 --- a/accountant/frontend/static/js/scheduler.js +++ b/accountant/frontend/static/js/scheduler.js @@ -17,7 +17,7 @@ // vim: set tw=80 ts=2 sw=2 sts=2: 'use strict'; -accountantApp +angular.module('accountant') .factory('ScheduledOperation', ['$resource', function($resource) { return $resource(