Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Dropdown not populating when options are resolved after model.  #133

Closed
@zackarychapple

Description

@zackarychapple

Related to #128,

I found this issue when I was trying to bind my dropdown to an object on my model. It worked locally but when I deployed to one of the servers the dropdowns never pre-selected. Eventually I found that the model was being resolved before the constants I was using for the dropdown values were resolved. This caused the page to render with no values pre-selected, however the values were there when selecting an option. I resolved this by not populating the model until the promise for the constants resolved.

Is there a better way to manage this internally with ui-select, or should I always resolve the constants(values of the select) before populating the model it is matched against?

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