maccaj51
asked on
How do I refresh ajax data from controller using angular?
Hi Experts,
I have the following code which gets data from my api and works great.
How would I then refresh the data using setInterval or such a like?
Thanks for any help
I have the following code which gets data from my api and works great.
var app = angular.module('2moro', []);
app.controller('results', function($scope, $http) {
$http.get('/api/snow.php').then(function (response) {
$scope.results = response.data.results;
});
});
How would I then refresh the data using setInterval or such a like?
Thanks for any help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome.
ASKER