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.
Just use binding ... In factory you store $http response. then in controller you do
var myFactory = new Factory(params);
myFatory.load().then(function() {
$scope.myFactoryData = myFactory.data
});
for example.
John Martin
Programmer and tinkerer.
Basically what @tngr said.
A template can render only those data that are available on the concerned controller's
$scopeobject. So, inside your controller you will ideally call the factory and set the http response on the$scopeobject. That's the best way IMO.