-
Notifications
You must be signed in to change notification settings - Fork 81
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
ng-options Doesn't Rebind After Scope Variable Change #40
Comments
+1 |
I find out temporary solution for me. Step1: Whenever you will update ng-options, it will get refreshed. |
I wanted the same behaviour, so i looked into the code (test/select.js) and.... If you want to "watch" your option's value, use "track by" in ng-options example:
Hope it'll help |
@frlinw thanks you're a life saver |
Hi @frlinw, |
It's a particular use case, maybe there is a better way. (jsfiddle example ?) |
+1 |
This directive overrides the $render method which causes the ng-options to never get rendered.
|
@nelisbijl +1. Works for me. |
@bmanturner , @nelisbijl |
@yugandharBellam, you need to put this code inside the source code of angular-bootstrap-select. |
Thanks |
If the variable used in
ng-options
changes after the view is rendered the select box does not rerender.This makes this plugin unusable when getting select options from an AJAX call.
Is there a way to get around this? Is the a bug that needs to be looked into?
The text was updated successfully, but these errors were encountered: