Angularjs ui-select dropdown on-select function call issue Angularjs ui-select dropdown on-select function call issue angularjs angularjs

Angularjs ui-select dropdown on-select function call issue


What I understand from your code is you want to get the item selected and do something based on selection, if so add on-select="onSelected($item)" to your ui-select and in controller:

$scope.onSelected = function (selectedItem) {  // do selectedItem.PropertyName like selectedItem.Name or selectedItem.Key   // whatever property your list has.}