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.

RFE: listener for view update completion #1306

@godmar

Description

@godmar

$apply() triggers model changes and subsequently updates the view.

Unfortunately, $apply() may return before the view has been updated. This can happen, for instance, when the view update involves the (asynchronous) processing of templates, and probably for other reasons.

There is no way in AngularJS to listen for when the view update has completed. As such, it's impossible to know when the DOM reflects the view update. This is a problem if AngularJS is used in conjunction with other libraries - for instance, jQuery plug-in that perform decorations on the DOM.

I think the problem is of a general nature, even though in my particular case I noticed it because of . The use of $includeLoaded listeners does not address my use case, since the templates are recursive and I don't know which $includeLoaded call will be the last one.

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