Skip to content

Support for ngModel #13

@philonor

Description

@philonor

Currently, changed values can only be recognized using a value-changed callback.
Implement a ng-model binding to allow:

<fancy-select ng-model="data"/>

with data being e.g.:

{value: [], possibleValues: [{caption: "Option A", id: 5}, {caption: "Option B", id: 7}]}

and internally doing e.g.:
scope.items=data.possibleValues
scope.value=data.value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions