Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VueJS: what does an html attribute prefixed with a colon signify?

Example:

<vue-select 
  class="vue-select1" 
  name="select1"
  :options="options1" 
  :model.sync="result1"
></vue-select>

What is the meaning the colon in front of :options and :model.sync here? I've searched all over the internet and can't find an answer anywhere.

Example seen here: https://github.com/Haixing-Hu/vue-select


1 Answers

In a Vue template, a colon : prefixing an html attribute is shorthand for v-bind.

Here's the full documentation for v-bind.

like image 61
thanksd Avatar answered Sep 02 '25 17:09

thanksd