Skip to content

Instantly share code, notes, and snippets.

@johnsardine
Created November 16, 2017 23:26
Show Gist options
  • Save johnsardine/a68331a1e422742d744bf76a0dba8f10 to your computer and use it in GitHub Desktop.
Save johnsardine/a68331a1e422742d744bf76a0dba8f10 to your computer and use it in GitHub Desktop.
8 - Fetch sample
export default {
fetchData() {
return fetch('/application-data/');
.then(function() {
return response.json();
});
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment