0
我有一个主视图,其中使用了敲除组合绑定来包含另一个视图。Knockout Compose Binding
<div>
<div data-bind="compose: {
model: 'viewmodels/sharedChart',
activate: true
}">
</div>
</div>
包含使用淘汰赛撰写绑定的视图有一个进度栏模式(twitter引导)。
<div class="modal hide fade" id="chartsLoading">
<div class="modal-header">
Loading charts.....
</div>
<div class="modal-body">
<div class="progress progress-striped active page-progress-bar">
<div class="bar" style="width:60%"></div>
</div>
</div>
vm.getCharts = function() {
$('#chartsLoading').modal('show');
};
我没有看到任何模式时vm.getCharts函数被调用。这是否发生,因为具有进度条模式的视图使用组合绑定进行加载?