我正在尝试使用Boopstrap确认ng-repeat中的按钮
当我在ng-repeat之外单独执行按钮时,如此
<button type="button"
class="btn btn-danger"
ng-click="removeLog(results.id)"
data-toggle="confirmation_9">Remove button</button>
使用关联的JavaScript代码
$("[data-toggle^=confirmation_]").confirmation({
rootSelector: '[data-toggle=confirmation]',
});
它按预期工作,但是当我在ng-repeat中执行时
<tr ng-repeat="results in results track by $index">
<td>
<button type="button"
class="btn btn-danger"
ng-click="removeLog(results.id)"
data-toggle="confirmation_{{results.id}}">Remove button</button>
</td>
</tr>
没有任何确认弹出窗口显示所有重复数据