Не понимаю почему переменная пуста
Framework7.use(Framework7Vue);
// Init Vue App
var app = new Vue({
el: '#app',
framework7: {
// Framework7 parameters that we pass to <f7-app> component
// Array with app routes
routes: [
],
// App Name
name: 'app 2.0',
// App id
id: 'com.myapp.test',
// ...
},
data: {
info: null,
updated: '',
title: 'app test'
},
// App root methods
methods: {
getData: function(){
console.log(this.updated);
}
},
mounted: function() {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
.then(function(res){
this.info = res.data;
this.updated = res.data.time.updated;
console.log(this.updated);
});
}
});
{{ updated }}
- пустая переменная остается