angular-select-change
v2.0.0
Published
as-change directive for select tag
Downloads
2
Readme
angular-select-change
as-change directive for select tag
It is similar to ng-change but gets triggered even on selecting the same value from the dropdown. Also has an option to disable scroll/rollover of dropdown values on hover in IE - fix for issue - StackOverFlow link
Demo
Usage
- Use as-change attribute in select tag. Here testFunc() gets called even when user selectes the same value from the dropdown
<select ng-model="secondDropDownValue" as-change="testFunc(secondDropDownValue);">
- Use as-change="autoFocusOff" to disble scroll/rollover of dropdown in IE. fix for issue - StackOverFlow link
<select as-change="autoFocusOff">
- as-change with both the above options.
<select ng-model="thirdDropDownValue" as-change="autoFocusOff; testFunc(thirdDropDownValue);">
License
MIT License