I have such data:
Logic
- Returned data has sub-data (array) named
links - Each link has child named
closures - I need to return these
closuresas of an array at once.
Code
axios.post('/api/valChanger', {[val]: e})
.then(res => {
this.closures = res.data.data.links.closures;
})
.catch(error => {
//...
});
Any idea?
