I am using angularjs 1.2.14, the code is working fine without ng-change. As soon as i add the code for ng-change in checkbox. it throws the error.
Error: [$compile:ctreq] http://errors.angularjs.org/1.2.14/$compile/ctreq?p0=ngModel&p1=ngChange at Error (native).....
Can anyone please help? Thanks in advance.
to use ng-change
in your element you should also specify ng-model
which i had missed. Thanks for your time.
http://plnkr.co/edit/oF8o6kU7zBDaJg4ts6TU?p=preview
See working sample.
ng-change requires ng-model, without it will not work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With