iOS - $digest or $apply only in progress when UI-Interaction done #2942
Description
Hi,
I've a weird problem:
I use ng-class to load specific css styles based on a scope variable.
The problem is, under iOS $digest or $apply of these changes, done in a controller, aren't sometimes called until the user interacts with the view (scrolling or something). Sometimes it works, but sometimes the UI-State gets stucked.
Under Android the $digest or $apply are directly called when the variable changes. Everything works fine!
Is this is a known bug under iOS? How can I fix that really annoying problem? I'm aware that this is probably a problem with iOS itself, not with AngularJS. But I don't know how to fix that.
The only solution for me is to trigger an UI event to trigger $digest or $apply.
I also tried to call $digest or $apply manually, but this isn't solving the problem. Often the current UI state get stucked until I scroll the page down or up or rotate the phone. Reaaally annoying!
Can somebody help me with that? Any help is appreciated!