Last active
May 31, 2016 04:45
-
-
Save yagoferrer/034a2b169c7353fac23bc619432f3ca5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myPromise() { | |
function success1() { | |
} | |
function error1() { | |
console.log("yeah that work") | |
} | |
return $http.get().then(success1, error1) | |
} | |
myPromise().then(function() { | |
}, function() { | |
console.log("ups! doesn't work") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment