0
我有一個指令來顯示引導程序的彈出程序,用戶可以在其中更新某個值。問題是我的值不可見作爲輸入的值(它是綁定的,我可以編輯它)。在輸入旁邊的彈出窗口中可以看到相同的值。輸入值不顯示在引導程序彈出框內
HTML
<div custom-popover popover-html="<div><span>{{costPrice}}</span><input type='text' ng-model='costPrice' /></div>"></div>
JS
$(elem).popover({
trigger: 'manual',
html: true,
content:() => {
var content = $compile(attr.popoverHtml)(scope);
return content;
},
placement: 'bottom'
});
這是當然的一些片只有整個項目的,但它顯示的問題。任何想法如何使這個值在輸入內部可見?
爲什麼你使用jQuery插件? .. –
你只是想將'value ='{{costPrice}}''添加到'input'嗎? – DavidG
所以你的彈出不更新值? –