Usually only one main module will control your application (the one you specify in ng-app, the same one as you specify dependencies on, in your example that's myApp2). Although it is possible to have 2 modules control your application, this is rare and something I've never seen before.
The other modules you add could either be:
- Official angular modules (e.g. ngRoute)
- Third party modules (e.g. ui-router)
- Your own customized modules
You can create your own modules to group related blocks of code together, or for example when you're writing a library for say, dealing with arrays. In the latter example you could take that module and reuse this for future projects, just by copying it in your project directory and adding it as a dependency on your main module.