我有這個網站:如何設置Vue公司的實例內其他
<div id='parent'>
{{title}}
<div id='children'>
{{titleChildren}}
</div>
</div>
這兩個Vue的實例:
var parent = new Vue({
el: "#parent",
data: {
title: 'Test Parent'
}
});
var parent = new Vue({
el: "#children",
data: {
titleChildren: 'Test Children'
}
});
的問題是孩子的數據不上的HTML綁定。 我可以有其他的一個實例,像角?
小提琴例如: https://jsfiddle.net/dsxvce0w/
感謝您的幫助。 – Matheus