Answer the question
In order to leave comments, you need to log in
How to populate data all through axios in created lifecycle?
I have a problem that while the life cycle I use like this
beforeCreate: function () {
let transaction = new RestApi('transaction.json');
transaction.list().then(res => {
this.accounts = res.data.accounts;
this.transactions = res.data.transactions;
});
},
Error in render: "TypeError: Cannot read property 'toString' of undefined"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question