Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Factory
var poll = new function([], $http.get('state.json').
success(function (data, status, headers, config) {
$scope.markers = data;
}).
error(function (data, status, headers, config) {
// log error
}));
$interval(function () {
poll;
}, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.