I have the following in app.js
config = angular.module('config', [])
.constant('Constants', {
Car: 'BMW',
Phone: 'G4'
});
services = angular.module('services', ['config']);
controllers = angular.module('controllers', ['config', 'services']);
app = angular.module('myApp', ['config', 'controllers']);
I want to move the "config" module definition to a separate file as I'm expecting it to grow bigger.
Is it possible to move the below portion to a separate file:
config = angular.module('config', [])
.constant('Constants', {
Car: 'BMW',
Phone: 'G4'
});
Is it possible... shouldn't you just try it first? If you did what problems arose?