I'm building an angular module that it is a library of functions for call some Rest Services in the BackEnd, the problem is that this module it is centralized and the Rest Api are in various domain, one for each user. I would like to run my module in the client initialized with the string of his domain, so they will call the right Rest Service. This one is a stupid example of the root angular js in the client app, I know it is wrong but its rapresents well the goal i would like to achieve.
angular.module('UserApp', ['MyRestLibrary("user_domain")'];
Hope to be clear, and sorry for the bad english. Thanks for all the suggestions