Created
October 4, 2018 23:54
-
-
Save fredyfx/1f423180c3b708009f4caa093164b777 to your computer and use it in GitHub Desktop.
How to bind style on condition for Vue-js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v-bind:style="[ errors.has('fieldHTMLElementName') ? {'color': '#f13347'} : {'color': '#000'} ]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment