Many thanks Eric and Sander for the reply. 

For me it is still not clear if officially you "shouldn't" have multiple 
physical files (controllers,services,etc) that refer to the same module.
The best practices guide, as far as i understand it, doesn't really bring 
this issue up. 

So, my question is not about the app structure but specifically if it is ok 
to package physicall files of "things" under the same module.
So for example instead of having 30 controllers under the same 
controllers.js module (one file),  you can have 30 files (few lines each) 
that refer to a app.controllers module. And of course not 30 files in which 
a new module is defined for each controller.

what do you think?

thanks,
Spiros

Τη Δευτέρα, 15 Σεπτεμβρίου 2014 8:59:31 π.μ. UTC+3, ο χρήστης Sander Elias 
έγραψε:
>
> Hi Eric, Spiros,
>
> Let me try to clear up something. In the document a module consists out of 
> several files.
> One of those files is the module definition file. In this file you define 
> the module itself,
> its dependencies, the configuration. In some cases you might even include 
> the
> module specific routing in this file. The controller(s), services, 
> templates, test, and directives are all
> in their own separate files.
> All of this sits in it own sub-folder.
> Hooking this up in the right order is a task for the tooling, or the 
> manual inclusion of the
> files.
> Most of the tools use node-glob, that in turn depends on mini-match. 
> <https://github.com/isaacs/minimatch>
> This means that you can declare order in your tooling by using a
> glob like this ['src/app_main.js', 'src/**/*_main.js', 'src/**/*.js', 
> '!src/components/**/*.js']
> for your concat or ugglify task will make sure it is hooked up in the 
> right order.
>
> Is this clarifying stuff up for you? I’m happy to answer any follow-up 
> questions!
> Regards
> Sander
> ​
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to