Created
November 16, 2017 23:26
-
-
Save johnsardine/a68331a1e422742d744bf76a0dba8f10 to your computer and use it in GitHub Desktop.
8 - Fetch sample
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
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