data: {
todoTitle: '',
todoDesc: '',
todos: [
{isOpen:false, title: "Do something", description: "To do something", completed: false, id: 0},
{isOpen:false, title: "Do something 2", description: "To do something 2", completed: false, id: 1},
{isOpen:false, title: "Do something 3", description: "To do something 3", completed: false, id: 2},
]
},
запуститьАнимацию();
axios
.get('/api/capitalization/' + currency)
.then(response => {
// Пишем parse, потому что из базы берется сразу JSON с слешами "\"
this.info = JSON.parse(response.data);
console.log(this.info);
})
.catch(err => {console.log(err)})
.finally(resp => {
остановитьАнимацию();
});
let icons = {
"math": "icon_name",
"physic": "icon_name_2"
}
let subject = 'math';
console.log(icons[subject])