Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCannot get $event from ng-click or ng-change in Firefox #13628
Closed
Comments
|
ng-change is not an evented directive - one cannot get the event from there. It is an expression that is executed when the model changes from a view value change. One needs to write a custom directive listening for the input/change event on the element itself in order to do this. |
|
@wesleycho is right. Thanks for answering! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I used ng-change or ng-click to listen a checkbox, the function can not get the event( whether I pass $event or not). The code is :
HTML
JS
And when i use onclick and onchange without angularJS, I can easily get the event by passing the parameter "event".
So please tell me how to get the event of ng-* in Firefox.
Thank you.