Answer the question
In order to leave comments, you need to log in
Why is only number or json passed to vue component?
I'll start with the code, the blade templating engine:
<single-news
:news="{{ json_encode($news) }}"
:url="123"
></single-news>
export default {
props: [
'news',
'url'
],
mounted() {
console.log('Check: ' + this.url);
}
}
Answer the question
In order to leave comments, you need to log in
Why is this happening?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question