When I see the doc ( https://v2.vuejs.org/v2/guide/computed.html )
the data is written as following .
data: {
message: 'Hello'
},
But as I learned it should be like as followings
data: function () {
return {
message: '',
}
},
Why is the vuejs so hard to understand code ?