Skip to content

Instantly share code, notes, and snippets.

@yyx990803
Created February 4, 2019 14:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yyx990803/88a0a432796f14745ade92757e71ba33 to your computer and use it in GitHub Desktop.
export default {
async mounted() {
// if an async error is thrown here, it now will get
// caught by errorCaptured and Vue.config.errorHandler
this.posts = await api.getPosts()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment