That's weird. I'm doing the exact same thing and it works fine.
Using {{ }} for blade and @{{ }} for vue in new component
Hi there,
In all Spark templates there's a distinct difference between using {{ }} (blade) and @{{ }} (vue).
So whenever I use {{ trans('messages.welcome') }} it activates blade to hit the trans method.
I've just created my own component in Vue:
Vue.component('update-team-contact-information', { props: ['team'] });
However if I'd do this, I get an error (see below):
<update-team-contact-information :team="team" inline-template> {{ trans('messages.welcome') }} </update-team-contact-information>
The error:
[Vue warn]: Property or method "trans" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in component <update-team-contact-information>)
How can I make it so that in my own component {{ }} is used for blade and @{{ }} is used for vue?
Please or to participate in this conversation.