ng-click not firing in AngularJS while onclick does

前端 未结 7 574
余生分开走
余生分开走 2020-12-15 04:56

I am trying to use AngularJS in my application and have been successful to some extent.

I am able to fetch data and display it to the user. And I have a button in

7条回答
  •  悲哀的现实
    2020-12-15 05:43

    INSTEAD of this

    ng-click="deleteRecord('{{d['@link'].href}}')"
    

    TRY this

    ng-click="deleteRecord(d['@link'].href)"
    

    You don't need to use curly brackets ({{}}) in the ng-click

    ENJOY...

提交回复
热议问题