2👍
set the variables on the last promise, so it will be like
fetchOffers() {
this.$http.get('http://127.0.0.1:8000/api/offers')
.then(response => response.json()) // this will return a Promise
.then(result => {
this.pagination = result.meta
this.links = result.links
this.offers = result.data
})
},
- [Vuejs]-Global Vue Component Exposure via Webpack
- [Vuejs]-Vuejs console logs appear then disappears in chrome
Source:stackexchange.com