Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

displayProperty should allow the item itself as default #666

@nescalante

Description

@nescalante

Hi, nice library, we have been using it for a while in our company.

we have the following use case:

$scope.theModel = ['foo', 'bar', 'baz'];
<tags-input ng-model="theModel"></tags-input>

the lib here is changing theModel to:

[{text:'foo'}, {text:'bar'}, {text: 'baz'}]

is there a way to prevent that model change?
can we keep the model format as is? (I mean, as an array of strings)
do we have a workaround to solve that issue?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions