Example v-bind Directive

The v-bind directive connects the style attribute of the DIV element to the 'colorVal' data property.

DIV element

Use the input type="color" box below to change the color.

colorVal: 'lightgreen'