How do I bind an inline style?

Viewed 7806

I've been following the guide: https://v2.vuejs.org/v2/guide/class-and-style.html#Binding-Inline-Styles for inline css in VueJS. However in some situations, it not working.

:style="{ background: colorSelected }" // working

The following gives an error saying: - invalid expression: :style="{ border-color-left: colorSelected }"

:style="{ border-color-left: colorSelected }" // not working

1 Answers
Related