バインディングを更新し続けることができるBoostrapポップオーバーのコンテンツとしてEmber Viewを取得しようとしています。
私はこれを達成できました。このjsFiddleの例を確認できます。
残念ながら、このソリューションではポップオーバーの配置が不規則になります。
誰かが私のコードをチェックして、私が間違っていたことを確認できますか、またはこれを達成するためのより簡単な方法があるかどうかを確認できますか?
$popover.popover({
html: true,
placement:'bottom',
content: function(){
if(_this.get('childView')) {
_this.get('childView').remove();
}
var view = _this.container.lookup('view:popoverContent'),
childView = _this.createChildView(view),
popover = $popover.data('popover'),
$tip = popover.tip(),
$content = $tip.find('.popover-content');
_this.set('childView', childView);
childView.appendTo($content);
var html = $content.html();
return html;
}
});