ng-click is not firing after click

Nancy8
Giga Contributor

ng-click is not fired after I click a link.  Please see the following codes.  Any suggestions?

find_real_file.png

 

 

 

 

 

7 REPLIES 7

Jon Barnes
Kilo Sage
Try putting this attribute on your “a” element: href=“javascript:void(0);”

Hi Jon,

I made the change based on your suggestion, but I got the following error: "The page you are looking for could not be found."

find_real_file.png

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?

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.