/* * get all retailers */ $http({ method: 'GET', url: 'retailers.json' }).then( function successCallback(response) { $scope.retailers = response.data; }, function errorCallback(response) { $scope.launchPopup('Error', 'Could not retrieve data'); } );