I am trying to call angular function using javascript/jQuery, following are the link I found
I have taken the same steps but getting error in browser console
Uncaught TypeError: Cannot call method 'myfunction' of undefined
I have created the fiddle. How to call myfunction function and alert is displayed? Any Idea?