I started my app with just one module. Folders as Controllers/ Services/ Directives/ Filters/, and each controller, directive, filter, service had its own file. That was ok.
Now, the app grew and this structure no longer fits. So, I googled and found several helpful articles about how to structure an Angular app: https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub https://github.com/zemirco/nghellostyle/blob/master/app/states/first/first-module.js https://github.com/thedigitalself/angular-sprout Okay, but now I have doubt about modules itself. For example, I created a module called "itaas.config", and this module is used in several other modules (itaas.catalog, itaas.profile, etc). But I also have one main module, called "itaas.main", which is the central module and depends on the others modules (itaas.catalog, itaas.profile, etc). In this "itaas.main" I configure the "itaas.config" like: angular.module('itaas.main', ['itaas.config', 'itaas.catalog', 'itaas.profile', 'more...']) .config(['configProvider', function (configProvider) { configProvider.override(function (config) { config.api.url = 'https://blablabla/'; config.easyRec.url = 'http://blablablabla/'; config.easyRec.apiKey = 'fdafere545rge5'; config.easyRec.tenantId = 'DEMO'; }); }]) *Question*: this configuration will be available on all other modules? Or do I have to configure this in all the modules that depends on itaas.config? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
