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

Typeahead > When using an object field in the "as", it's not possible to set value programmatically #739

Closed
@julienmeyer

Description

@julienmeyer

I configure a typehead like this : "obj.id as obj.name for obj in objList" with "ng-model=selectedValue".

If I set selectedValue equals to an obj.id, the typehead didn't find the wanted obj. But if I set selectedValue equals to obj, it works.

If the user, select a item from the typehead, the selectedValue is the id and not the complete object. So I don't understand why I can't not set programmatically a value.

Example : http://plnkr.co/edit/iRR7cbIxrpjLpVywZ96u

Thanks,

Julien

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