Answer the question
In order to leave comments, you need to log in
Why doesn't it display the value of $root everywhere in the component?
I am a little familiar with Vue and have noticed strange behavior.
There is:
new Vue({
el: '#app',
created: function(){
this.getCategories();
},
data:{
content: 'что-то',
...
...
var VueModal = Vue.extend ({
template: `<div v-if="$root.modalContent">
<div>
<input type="text" value="{{$root.content}}">
</div>
{{$root.content}}
</div>
...
...
<div>
<div>
<input type="text" value="{{$root.content}}">
</div>
что-то
</div>
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