0

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 ?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.