1
角度UIポップオーバーに動的IDを持つテンプレートを使用できますか?例えば角度UIブートストラップ:動的ポップオーバーテンプレートID
:
<div ng-repeat="row in data">
<button class="btn" uib-popover-template="'myTemplate_{{row.id}}.html'" popover-trigger="mouseenter">View</button>
<script type="text/ng-template" id="myTemplate_{{row.id}}.html">
<strong>Name</strong>: {{row.name}}<br/>
<strong>Phone</strong>: {{row.phone}}<br/>
<strong>Email</strong>: {{row.email}}
</script>
</div>
私が代わりにngのテンプレートを使用してのサーバからテンプレート(例えばmyTemplate_1.html)を取得するためにボタンアンギュラ試行をマウスオーバー。
私はこの権利に近づいていますか?そうでない場合、動的HTMLコンテンツをポップオーバーに割り当てる最良の方法は何ですか?
ありがとうございました。
ありがとうございました。私は全部を笑ってしまった。 – Nick
@ニックそれは笑い起こる。 – Jhecht
テンプレートとトリガー文字列を一重引用符で囲んで、 ' ' – programmer