I'm building a simple app in Vue. It's simple enough that I'm not using components.
I store my text strings in a config object so they're easy to change:
var config = {
orderInvalid: "Order {{ order.id }} is invalid"
}
In the Vue object I push that data into a generic error variable:
if(orderInvalid(orderNumber)){
this.errorMessage = config.orderInvalid;
}
My HTML displays this error:
<h1>{{ this.errorMessage }}</h1>
The problem is that it isn't parsing the {{ order.id }} and displays that string literally. Is there a way around this? I need {{ order.id }} to be the actual order id. I was looking at vue.compile but it was throwing various errors about missing root elements. I'm guess it is meant for components?