Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Passing parameters to onSelectionChanged in ng-repeat #457

Open
yuz302 opened this issue Mar 1, 2018 · 1 comment
Open

Passing parameters to onSelectionChanged in ng-repeat #457

yuz302 opened this issue Mar 1, 2018 · 1 comment

Comments

@yuz302
Copy link

yuz302 commented Mar 1, 2018

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); }};
@v29neil
Copy link

v29neil commented Mar 13, 2018

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 :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants