Hello, I have a question, is it possible to do so in order to first send a request to the server to accept it, and only then initialize all the data variables? Currently, currentTask and countTasks are initialized before the request to the server, an example below:
... data : { tasks : [], countTasks : tasks.length, currentTask : { title : tasks[0].title, description : tasks[0].description, inputData : tasks[0].inputData, outputData : tasks[0].outputData } }, created : function () { var self = this; axios.get('/getTasks').then(function (response) { var tasksFromServer = response.data; for (var i = 0; i < tasksFromServer.length; i++) { self.tasks.push({ title : tasksFromServer[i].title, description : tasksFromServer[i].description, inputData : tasksFromServer[i].inputData, outputData : tasksFromServer[i].outputData }); } }); }, ... Can someone tell me what can be done or come up with to implement this idea? Thanks in advance ...