Exports module name instead of module itself.
This commit is contained in:
parent
d7de013954
commit
a7f37e88a9
@ -28,7 +28,7 @@ var ngResource = require('angular-resource'),
|
|||||||
var accountFormTmpl = require('./account.form.tmpl.html'),
|
var accountFormTmpl = require('./account.form.tmpl.html'),
|
||||||
accountDeleteTmpl = require('./account.delete.tmpl.html');
|
accountDeleteTmpl = require('./account.delete.tmpl.html');
|
||||||
|
|
||||||
var accountModule = angular.module('accountant.accounts', [
|
module.exports = angular.module('accountant.accounts', [
|
||||||
ngResource,
|
ngResource,
|
||||||
ngMessages,
|
ngMessages,
|
||||||
ngUiBootstrap,
|
ngUiBootstrap,
|
||||||
@ -271,6 +271,6 @@ var accountModule = angular.module('accountant.accounts', [
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = accountModule;
|
.name;
|
||||||
|
@ -34,10 +34,10 @@ var accountsTmpl = require('./accounts/accounts.html');
|
|||||||
var schedulerTmpl = require('./scheduler/scheduler.html');
|
var schedulerTmpl = require('./scheduler/scheduler.html');
|
||||||
|
|
||||||
var app = angular.module('accountant', [
|
var app = angular.module('accountant', [
|
||||||
accountModule.name,
|
accountModule,
|
||||||
loginModule.name,
|
loginModule,
|
||||||
operationModule.name,
|
operationModule,
|
||||||
schedulerModule.name,
|
schedulerModule,
|
||||||
ngRoute,
|
ngRoute,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ var loginTmpl = require('./login.tmpl.html');
|
|||||||
|
|
||||||
var base64 = require('base64util');
|
var base64 = require('base64util');
|
||||||
|
|
||||||
var loginModule = angular.module('accountant.login', [
|
module.exports = angular.module('accountant.login', [
|
||||||
ngHttpAuth,
|
ngHttpAuth,
|
||||||
ngStorage,
|
ngStorage,
|
||||||
ngUiBootstrap
|
ngUiBootstrap
|
||||||
@ -153,6 +153,6 @@ var loginModule = angular.module('accountant.login', [
|
|||||||
$rootScope.$on('$destroy', function() {
|
$rootScope.$on('$destroy', function() {
|
||||||
onAuthLoginRequired = angular.noop();
|
onAuthLoginRequired = angular.noop();
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = loginModule;
|
.name;
|
||||||
|
@ -27,8 +27,8 @@ var account = require('../accounts');
|
|||||||
|
|
||||||
var ngResource = require('angular-resource');
|
var ngResource = require('angular-resource');
|
||||||
|
|
||||||
var balanceChartModule = angular.module('balanceChartModule', [
|
module.exports = angular.module('balanceChartModule', [
|
||||||
account.name,
|
account,
|
||||||
ngResource
|
ngResource
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -188,6 +188,6 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
|||||||
id: '@id'
|
id: '@id'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = balanceChartModule;
|
.name;
|
||||||
|
@ -25,7 +25,7 @@ var angular = require('angular');
|
|||||||
|
|
||||||
var ngResource = require('angular-resource');
|
var ngResource = require('angular-resource');
|
||||||
|
|
||||||
var categoryChartModule = angular.module('categoryChartModule', [
|
module.exports = angular.module('categoryChartModule', [
|
||||||
ngResource
|
ngResource
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -132,6 +132,6 @@ var categoryChartModule = angular.module('categoryChartModule', [
|
|||||||
id: '@id'
|
id: '@id'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = categoryChartModule;
|
.name;
|
||||||
|
@ -34,14 +34,14 @@ var ngResource = require('angular-resource'),
|
|||||||
ngUiNotification = require('angular-ui-notification'),
|
ngUiNotification = require('angular-ui-notification'),
|
||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
var operationModule = angular.module('accountant.operations', [
|
module.exports = angular.module('accountant.operations', [
|
||||||
ngResource,
|
ngResource,
|
||||||
ngMessages,
|
ngMessages,
|
||||||
ngUiBootstrap,
|
ngUiBootstrap,
|
||||||
ngUiNotification,
|
ngUiNotification,
|
||||||
ngStrap,
|
ngStrap,
|
||||||
balanceChartModule.name,
|
balanceChartModule,
|
||||||
categoryChartModule.name
|
categoryChartModule
|
||||||
])
|
])
|
||||||
|
|
||||||
.config(function($resourceProvider) {
|
.config(function($resourceProvider) {
|
||||||
@ -264,6 +264,6 @@ var operationModule = angular.module('accountant.operations', [
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = operationModule;
|
.name;
|
||||||
|
@ -28,7 +28,7 @@ var ngMessages = require('angular-messages'),
|
|||||||
ngUiNotification = require('angular-ui-notification'),
|
ngUiNotification = require('angular-ui-notification'),
|
||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
var schedulerModule = angular.module('accountant.scheduler', [
|
module.exports = angular.module('accountant.scheduler', [
|
||||||
ngMessages,
|
ngMessages,
|
||||||
ngUiBootstrap,
|
ngUiBootstrap,
|
||||||
ngUiNotification,
|
ngUiNotification,
|
||||||
@ -225,6 +225,6 @@ var schedulerModule = angular.module('accountant.scheduler', [
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
module.exports = schedulerModule;
|
.name;
|
||||||
|
Loading…
Reference in New Issue
Block a user