ng-click is not firing after click
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2018 02:31 PM
ng-click is not fired after I click a link. Please see the following codes. Any suggestions?
Labels:
- Labels:
-
Service Portal Development
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2018 05:24 PM
Try putting this attribute on your “a” element:
href=“javascript:void(0);”
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2018 07:37 AM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2018 07:51 AM
Your double-quote characters are wrong on the href attribute. Sometimes if you copy those from somewhere else, that happens. Notice how they look different from other double-quotes?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2018 11:47 AM
You are right. I changed double-quote characters, but ng-click not been triggered. If I added onClick ="alert("click me")", then onClick event is triggered.