showing results for - "nuxt fetch does not set data"
Amelie
05 Oct 2016
1import { Vue, Component } from 'nuxt-property-decorator'
2  
3export default class App extends Vue {
4  something = ''
5    
6  // The problem is the context 
7  async fetch({ params }: Context) {
8    this.something = 'john doe'
9  }
10}
11
12// This will work (without using the context)
13export default class App extends Vue {
14  something = ''
15  
16  async fetch() {
17    this.something = 'john doe'
18  }
19}
20