© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Tangorri
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.
martinczerwi
Eat, learn and sleep
Eventually you would not need to instantiate the factory. Factory.load() should suffice. Angular instantiates on it's behalf when using DI.
Factory.load()