How access module configuration

Posted in General by Loïc Calvy Wed Sep 23 2015 11:01:45 GMT+0000 (Coordinated Universal Time)·Viewed 2,632 times

If you inject a module with ocLazyload, how to setup a configuration provider on this new module? I try to inject a loopback angular module I need to access the LoopBackResourceProvider angular.module('my-app-module')config(function(LoopBackResourceProvider) { // Use a custom auth header instead of the default 'Authorization' LoopBackResourceProvider.setAuthHeader('X-Access-Token'); // Change the URL where to access the LoopBack REST API server LoopBackResourceProvider.setUrlBase(''); Is it possible?
Markdown is allowed