<td>
<select ng-options="user.username as user.username for user in dptUsers"
ng-model="newResponsible" data-ticketID='{{ticket._id}}'
ng-click='editResponsible(newResponsible, <<<<>>>>)'>
{{user.username}}
</select>
</td>
如何将我的data-ticketID传递到editResponsible(a,b)函数?
答案 0 :(得分:1)
您可以直接在ng-click
ng-click='editResponsible(newResponsible, ticket._id)'