how to pass angular js variable inside onclick function as parameter
问题 I have tried to pass AngularJS variable as argument value inside onclick() to call javascript function. Can anyone guide me on how to do it? My code: <div onclick="deleteArrival({{filterList.id}})" class="table-icon deleteIcon">{{filterList.id}}</div> 回答1: You should be using ng-click, there is no reason to use onclick as angular provides you with this functionality <div ng-click="deleteArrival(filterList.id)" class="table-icon deleteIcon">{{filterList.id}}</div> You should then move your