Skip to content

Instantly share code, notes, and snippets.

@lnazarit
Last active January 31, 2017 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lnazarit/cfa7f96aaabf2fdf3aff848641b10dad to your computer and use it in GitHub Desktop.
Save lnazarit/cfa7f96aaabf2fdf3aff848641b10dad to your computer and use it in GitHub Desktop.
$http.jsonp({{ site.url }}/posts.json?callback=JSON_CALLBACK').then(function (res) {
$scope.posts = res.data;
}, function (error) {
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment