Difference from @click and v-on:click Vuejs

Difference from @click and v-on:click Vuejs

Asked on November 22, 2018 in vue.js.
Add Comment

  • 1 Answer(s)

    v-bind and v-on are two frequently used directives in vuejs html template. So they provided a shorthand notation for the both of them as follows:

    You can replace v-on: with @


    by the way:


    Another example:


    by way of:


    Likewise, v-bind with:


    Can be inscribed as:

    Answered on November 22, 2018.
    Add Comment

  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.