-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update label when options are changing #187
Comments
It should update your selected labels but depends on how you use this directive. This directive clones your custom content beneath into the drop-down button. and try to compile the template ( if your using a nya-bs-option directive to generate option). |
I first tried without
To solve this I use the
Although all of the parameters in the function So e.g. with values like 3, 4, 5 and transport code So the options are updated correct, but not the label/title. Does it somewhere has a oneway binding on the filter option label? |
maybe angular 1.x cannot execute functions in evaluate brackets twice? when in oneway binding, it means it can only observe an expression value changes... |
I have a dropdown with options, where the options are depending on another dropdown.
When I select a value from a dropdown with transport options it get some different travel length, where part of the label is
night
(nætter) if the transport method isself-drive
(kør-selv) otherwisedays
(dage).But when changing to another transport option with the same values it doesn't update the label although the options are correct, but it does update the labels if the values are different.
I had the same issue with a regular
select
and angular bindings if the bindings were oneway, but if the bindings were twoway it did work. So I am wondering if this is using oneway binding on this?Is there another way to ensure the label is updated?
In the last example the option
8 dage
is selected, but the filter option label doesn't match this.The text was updated successfully, but these errors were encountered: