Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2014 17:13
What would you like to do?'Parse', ['parseConstant', function(parseConstant) {
function getJob(){
var jobsObj = Parse.Object.extend("Jobs");
var query = new Parse.Query(jobsObj);
return query.find();
return {
getJob: getJob
}]);'Ctrl', ['$scope', 'Parse', function ($scope, Parse){
function successHandler(response){
$scope.cities = jobsCities(response);
$scope.trabajo = response;
function errorHandler(error){
Parse.getJob().then(successHandler, errorHandler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment