Answer the question
In order to leave comments, you need to log in
How to properly pass JSON to vue js component?
From the site template to the component I pass data for initialization in json:
<div id="root">
<my-component docs='{{ json }}' />
</div>
const my-component = {
props: ['docs'],
data: function() {
return {
docs: JSON.parse(this.docs)
};
},
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question