我在我的應用程序中使用引導彈窗,我需要渲染它內部的插座。Emberjs插座內的自舉popover
我有這樣的嵌套的路線:
this.resource('pages', function(){
this.resource('page', { path: ':id' }, function(){
this.resource('edit', function(){
this.resource('images', function(){
this.resource('image', { path: ':image_id'}, function(){
this.route('edit');
})
});
});
});
});
當用戶在這裏=>/pages/1/edit/
時,他的形象是路線上點擊/images
但呈現{{outlet}}
的酥料餅像這裏面:
<div class="popover-content hide">
{{outlet}}
</div>
這是我的popover初始化:
$img.popover({
html: true,
content: function() {
return $('.popover-content').html(); //need to have the outlet here
}
});
到目前爲止,它正確渲染我的出口,但在圖像模板中,我有一些修改DOM的按鈕,它不更新HTML。除非我關閉並再次打開popover,否則我可以看到修改。
是否有可能直接在代碼中渲染插座?或者有可能讓我的popover更新?
感謝您的幫助。