0👍
✅
the response
object in axios
includes multiple properties like headers
, status
and data
, in your case the your posts are the data
property, so set this.posts = response.data;
:
.then((response) => {
this.posts = response.data;
this.configPagination(response.headers);
})
Source:stackexchange.com