Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change eventhandler not firing #78

Open
farooqhanif-Dev opened this issue Mar 26, 2017 · 1 comment
Open

change eventhandler not firing #78

farooqhanif-Dev opened this issue Mar 26, 2017 · 1 comment

Comments

@farooqhanif-Dev
Copy link

farooqhanif-Dev commented Mar 26, 2017

here is my html:

<select selector multi="true" model="mySelectedOptions" remote="myOptions" change="updateMySelectedOptions" value-attr="optionIdAlt" view-item-template="'selectedOptionsTemplate'" dropdown-item-template="'availableOptionsTemplate'"></select>

and here is the snippet from controller:
$scope.updateMySelectedOptions= function(newValue, oldValue) { }

@emrahyigit
Copy link

emrahyigit commented Apr 20, 2017

Try as follows:

in the controller:
$scope.updateMySelectedOptions= function(oldValue, newValue) { }

and in your html:
change="updateMySelectedOptions(oldValue, newValue)"

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

No branches or pull requests

2 participants