Homepage
Sign in / Sign up
Go to the profile of Alexey Gonchar
Alexey Gonchar
Apr 28, 2016
Funny…I was hoping for less classy components…
Avi Block
2

Why? I find it difficult to understand where is the context in object-declaration like that:

new Vue({

el: '#app',

data: {
name: ''
},

methods: {
logName() {
console.log(this.name);
}
}
});

In js expected that `this` will references to the `methods`

  • Go to the profile of Alexey Gonchar

    Alexey Gonchar

    • Share
    Go to the profile of Alexey Gonchar
    Never miss a story from Alexey Gonchar, when you sign up for Medium. Learn more
    Never miss a story from Alexey Gonchar