Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

binding style vuejs

//Array Syntax

<div v-bind:class="[activeClass, errorClass]"></div>

data: {
  activeClass: 'active',
  errorClass: 'text-danger'
}
Source by vuejs.org #
 
PREVIOUS NEXT
Tagged: #binding #style #vuejs
ADD COMMENT
Topic
Name
3+7 =