How can you pass a bound variable to an ng-click function?

前端 未结 2 687
说谎
说谎 2020-12-13 08:29

I have a simple delete button that will accept a string or number but won\'t accept an ng-model variable ( not sure if that\'s the correct terminology ).

<         


        
2条回答
  •  感动是毒
    2020-12-13 08:48

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

    
    

提交回复
热议问题