Skip to content

Support for ngModel #13

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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