How to create angular factory as per backend response?

53 views Asked by At

I'm not getting how can I create angular factory having shared details in an object. What I want is these details I'm getting from server so I want this factory to get initilized before angular app starts. I want to use this details in my controller so it should be ready when user visit pages. I do implement resolve function so I achieved by forcing controller not to load before I'm getting details from server but this details I want to use in another factory which extract some details from it and returns few data in which I can't implement promise. Can you please suggest way how can I do this?

If you required any code and is it not clear please comment, I will provide.

0

There are 0 answers