angular-multiselect
angular-multiselect copied to clipboard
single select - button text is not mapped correctly to the model value
single select - button text is not mapped correctly to the model value
Object -
$scope.fruits = [
{id: 1, name: 'Apple'},
{id: 2, name: 'Orange'},
{id: 3, name: 'Banana'}
];
option string is - "c.id as c.name for c in fruits"
Plnkr link - link1
Select "Orange" in 2nd dropdown. The model value is set correctly to 2, but the button text is set to "Banana"