My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

AngularJS : How do I store the $http.get JSON response data in the factory itself?

Rajanshu Ujjwal's photo
Rajanshu Ujjwal
·Jun 16, 2016

I want to store an array of objects [key:value] in the factory and then send to render on the View (html) part via the controller. However, I do not want to store the values in the controller itself.