vue class style if code example
Example 1: inline style vue
<div :style="{color: ' #f67e7e'}" ></div>
Example 2: vue conditional class
<div :class="{ 'prop-name': boolVar }"></div>
<div :style="{color: ' #f67e7e'}" ></div>
<div :class="{ 'prop-name': boolVar }"></div>