As per this answer, I'm trying to set Vue.config.delimiters = ['${', '}']
in order to use Vue
with server-side handlebars
.
When I just use the global config, it doesn't anything.
When I set delimiters
on new Vues, it works
var game = new Vue({
delimiters: ['${', '}'],
...
How can I make it work in one global place i.e. Vue.config.delimiter
?
Global delimiters were removed in
Vue 2
, so you now have to set them on theVue
instance. From the Vue Github page:Just to add a bit more context to @craig_h's answer; i've had to use the Vue build with browser templates instead of .vue files so had to work with this.
I was initially adding it :
And this wasn't working, but when i added it to:
It worked, this may be useful for someone who has run in to this issue