Can Vue class binding work with strings? For example:
<div :class={open: target == 'myString'}></div>
var app = new Vue({
target: null
})
It works when I don't use quotes
<div :class={open: target == myString}></div>
However, I receive the following warning:
[Vue warn]: Property or method "myString" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.