I am currently working on a Vue application where an expression is retrieved from a config file as a variable. My goal is to run this expression (similar to using eval in JavaScript) and apply the result to an attribute.
For example:
<v-text-field placeholder="{{expression}}"></v-text-field>
However, instead of evaluating the expression, it is simply displaying as text. Is there a way to make this work?
Edit
In this case, the expression may look like:
data.option=1?"ABC":"BCD"