Skip to content

Instantly share code, notes, and snippets.

@robwormald
Created December 10, 2013 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwormald/7901404 to your computer and use it in GitHub Desktop.
Save robwormald/7901404 to your computer and use it in GitHub Desktop.
//psudeo code
$http.post('/foobar',{some : 'data'}).success(function(data,status,error,config){
if(data.user){ //or whatever you do to verify...
$http.post('/tracker',{other : 'data'}).success(function(data,status,err,config){
console.log('successfull track')
}
}
})
.error(function(data,status,error,config){
console.log('user reg failed'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment