Last active
August 28, 2017 18:16
-
-
Save marcelo-ribeiro/0403e7bf5a8ef4c5221be9c2f420ccac to your computer and use it in GitHub Desktop.
Angular JSONP
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
$http({ | |
method: 'JSONP', | |
url: $sce.trustAsResourceUrl(url), | |
jsonpCallbackParam: 'callback' | |
}) | |
.then(function(response) { | |
console.log(response); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment