I try to get data from database using factory. I have a problem, because I don\'t know how to get data from object which was returned from factory. This is what I received
This worked in my case: result.$$state.value.
Sample Code: Controller:
promise = getConfigService.getAccount(protocol+hostName+port); promise .then( function (result) { var baseUrlTemp = result.$$state.value.baseURL; console.log("BaseURL:"+baseURLTemp) }
Ouput: BaseURL: www.oneindia.com