| //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