S
S
Sergey Nikolaev2015-05-15 13:14:15
JavaScript
Sergey Nikolaev, 2015-05-15 13:14:15

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');
            }
        });
})

How to force it to be called through SetInterval?
It is not possible to simply wrap or call through variable assignment

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grechushnikov, 2015-05-15
@maxyc_webber

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 question

Ask a Question

731 491 924 answers to any question