pass button id in ng-click angular.js

前端 未结 2 609
鱼传尺愫
鱼传尺愫 2021-02-13 12:50

I need to pass button id in Ionic Framework.

Here is what I have tried.

In js code:

angular.module(\'todo\', [\'ionic\'])
.contr         


        
2条回答
  •  抹茶落季
    2021-02-13 13:27

    This works if no repeaters are there , if repeaters are the data attribute should have different names and secondly event.CurrentTarget.Id will make it work.

提交回复
热议问题