Sander,
Both $apply and $evalAsync worked for me.
Thanks again =)
2017-07-04 0:28 GMT-03:00 Sander Elias :
> Hi César,
>
> It did work when I did just that in your plunk.
>
> element.bind('click', function(event) {
>_toggleSelection();
>
Hi César,
It did work when I did just that in your plunk.
element.bind('click', function(event) {
_toggleSelection();
scope.$apply()
});
but you need to apply it after you make your changes, perhaps that went
wrong?
Regards
Sander
--
You received this
Sander, thanks for your response.
I tried scope.$apply before post my doubt, but it not worked.
Thanks again =).
2017-07-01 6:23 GMT-03:00 Sander Elias :
> Hi César,
>
> You are using a jQeury bind to attach your click handler. This click
> happens outside of AngularJS's
Hi César,
You are using a jQeury bind to attach your click handler. This click
happens outside of AngularJS's field of sight. If you do something like
this, you need to notify angular that you have changed something behind its
back, so it can update. In a case like this, I think I would use