angularjs-dropdown-multiselect icon indicating copy to clipboard operation
angularjs-dropdown-multiselect copied to clipboard

Passing parameters to onSelectionChanged in ng-repeat

Open yuz302 opened this issue 7 years ago • 1 comments

I want to pass some parameters to the onSelectionChanged event function, because I'm using the multi-select in a ng-repeat

<div ng-repeat="x in y">
    <div ng-dropdown-multiselect="" events="multiselectEvents" options="..." selected-model="...">
$scope.multiselectEvents = { onSelectionChanged: function (x) { $scope.myFunction(x); }};

yuz302 avatar Mar 01 '18 18:03 yuz302

I tried like this :

<div ng-repeat="x in y">
    <div ng-dropdown-multiselect="" events="multiselectEvents($index)" options="..." selected-model="...">
$scope.multiselectEvents =function(index) {
return{ 
onSelectionChanged: function (x) { 
$scope.myFunction(x);
 }
}
};

but no luck :(

v29neil avatar Mar 13 '18 12:03 v29neil