Home

Issue: 2056

Update View after API call in created method

[issue link]
<template>
{{ x }}
</template>

<script>
...
...
created () {
  axios.get('www.url.com').then(result => {
    this.x = result
  }
}

I’ve tried searching through the issues thread, but found nothing about this.

In the above code, i want to update the view after an API call. Am i implementing this wrongly? Or should i be using another way to do this?

This question is available on Nuxt.js community (#c1824)