Answer the question
In order to leave comments, you need to log in
How to make a request in an Angular loop?
The controller has a request:
.controller('estateCtrl', function ($scope,reqFac,$state) {
reqFac.post('c=seller&a=showEstate',$scope.estate, function (res) {
$scope.estate = res;
if(res['st']=='error'){
$state.go('login');
}
});
})
Answer the question
In order to leave comments, you need to log in
var controller = ang...controller....
setInterval(controller....);
type of such. I am just starting to study
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question