Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

iOS - $digest or $apply only in progress when UI-Interaction done #2942

Closed
@andi1984

Description

@andi1984

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions