Level 32
i figured out myself, its because the mounted call when vue is loaded but the problem is its inline template and data is passed through props so we must use updated() instead of mount(), updated() is called after inline view template is render
var base = require('navbar/navbar');
Vue.component('spark-navbar', {
mixins: [base],
updated() {
console.log(this.notificationsCount);
},
});
1 like