Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var arr = [];
  2. $scope.cabyns.$loaded().then(function() {
  3. angular.forEach($scope.clubs, function(value, key) {
  4. if($scope.getDistance(value.lng, value.lat) == true) {
  5. console.log(value.name + " it's close enough!");
  6. arr.push(value.$id);
  7. }
  8. });
  9. console.log(arr);
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement