angularjs-dropdown-multiselect
angularjs-dropdown-multiselect copied to clipboard
Passing parameters to onSelectionChanged in ng-repeat
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); }};
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 :(