Skip to content

Instantly share code, notes, and snippets.

@degt
Forked from lnazarit/llamando al api.liquid
Last active January 31, 2017 15:33
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 degt/115e2bab82fc09fb1c0f555537be3d9e to your computer and use it in GitHub Desktop.
Save degt/115e2bab82fc09fb1c0f555537be3d9e 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