AngularJS ng-click事件不會在Boostrap彈出窗口中觸發。AngularJS ng-click事件不會在Bootstrap彈出窗口中觸發
<button id="delAnnot" type="button" class="btn btn-default"
data-toggle="popover" data-html="true" data-placement="bottom" data-content="
<button type='button' class='btn btn-danger' ng-click='vm.removeAnnotation(scenevm.sharedService.curAnnotation.ID)'>delete</button>">
<span class="glyphicon glyphicon-trash"></span>
</button>
我初始化我酥料餅用的容器,以便酥料餅是我的角度控制器內:
$(".btn").popover({
placement: 'bottom',
trigger: 'click',
container: '#sceneCtrl'
})
你應該這樣做嗎?你可以使用一些角度指令,因爲已經有很多很棒的指令了嗎? –