You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I'm trying to use ng-model with an html select. However, I'm using curly braces to set each option's value to a scope variable (An enum, specifically). Unfortunately, my select's default option never gets selected when the page loads. I suspect that ng-model runs before the values get interpolated.
I would use ng-options, but in our real app, each option has an ng-if to hide it, depending on the user's permissions. Also, unfortunately I can't build an options array in the controller, because it needs to be in the html template for our translation process to work.