Skip to content Skip to sidebar Skip to footer

What Does The Colon Represent Inside A Vuejs/vuetify/html Component Tag

I am using Vuetify, so this could be either a VueJS, Vuetify or even HTML question, but my component looks like this : Take the :key for example, what does the colon (:) before t

Solution 1:

:key is a shorthand for v-bind:key:

The v- prefix serves as a visual cue for identifying Vue-specific attributes in your templates. This is useful when you are using Vue.js to apply dynamic behavior to some existing markup, but can feel verbose for some frequently used directives. At the same time, the need for the v- prefix becomes less important when you are building a SPA where Vue.js manages every template. Therefore, Vue.js provides special shorthands for two of the most often used directives, v-bind and v-on

https://v1.vuejs.org/guide/syntax.html#v-bind-Shorthand

Post a Comment for "What Does The Colon Represent Inside A Vuejs/vuetify/html Component Tag"