amitava82 / angular-multiselect

[NOT MAINTAINED]Native AngularJS multiselect directive
http://amitava82.github.io/angular-multiselect
MIT License
140 stars 124 forks source link

single select - button text is not mapped correctly to the string modal value #95

Open NithinBiliya opened 7 years ago

NithinBiliya commented 7 years ago

single select - button text is not mapped correctly to the string modal value

plnkr link - link2

Object -

    $scope.fruits = [
                        {id: '1', name: 'Apple'},
                        {id: '2', name: 'Orange'},
                        {id: '3', name: 'Banana'}
                    ];

options string - "c.id as c.name for c in fruits"

Select "Orange" in 2nd dropdown. The model value is set correctly to 2, but the button text is set to "2" instead of "Orange"