How I can pass ng-model as parameter in ng-click and use in scope?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2018 08:45 PM
How I can pass ng-model as parameter in ng-click and use in scope?
Labels:
- Labels:
-
Service Portal Development
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2018 09:52 PM
If your model is , lets say data.name, you can write ng-click="validateName(data.name)"
https://stackoverflow.com/questions/34270769/passing-ng-model-variable-through-an-ng-click-to-a-function