Skip to content

State: onEnter callback executed before template added to DOM #575

@iandev

Description

@iandev

A states onEnter callback is executed before the template is added to the DOM. In the UI router docs, one of the examples shows a modal dialog being triggered in the state onEnter callback. This is fine, but in the example, the modal doesn't rely on the template being in the DOM already. So, according to the docs, the onEnter/onExit is a good place to open/close a modal dialog, but the states template should be in the DOM by the time the onEnter callback is fired.

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