Skip to content

Instantly share code, notes, and snippets.

@marcelo-ribeiro
Last active August 28, 2017 18:16
Show Gist options
  • Save marcelo-ribeiro/0403e7bf5a8ef4c5221be9c2f420ccac to your computer and use it in GitHub Desktop.
Save marcelo-ribeiro/0403e7bf5a8ef4c5221be9c2f420ccac to your computer and use it in GitHub Desktop.
Angular JSONP
$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