I am attempting to add AngularJS to a Grails application that I'm working on.

Specifically I am adding Angular functionality to one part of my site, for example to all the pages for Users.

I started off creating a Users module which I was adding controllers and services to. Then I hit a point where I needed some basic configuration code that I know I'm going to want in other areas of my site - transforming http parameters so that my backend can understand them (<http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/>).

This leads me to believe that I need a base module for my entire application. However, I'm still very new to Angular and I don't understand how my Users module will inherit this configuration from a base module. Is that even possible? Or should I just have 1 base module that I add every controller and service for my entire app to?

edit: After some testing it looks like if I define a module and then give it as a dependency of another: 

```
var moduleB = angular.module('ModuleB', ["ModuleA"])

```

My configuration from ModuleA will be respected within ModuleB. This doesn't make any sense to me though, what if I list two dependencies with conflicting configurations?