ng-modal is not working when used with ng-options and group by.
See original GitHub issueHi, There is no modal change (I have tried using $watch to verify any modal change).
The following code:
<select name="selectedCard" chosen class="chosen-select" style="width:250px;"
disable-search="true"
ng-if="showMultiCardNavBar()" ng-model="selectedCard" ng-change="cardSelected()"
ng-options="card.id as card.id group by getGroupByName(card.cardGroupId) for card in cardsContext" >
<option value=""></option>
</select>
there is no change on this property: selectedCard.
Had to do a workaround to query the DOM object and find the chosen-selected taged element.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
ng-model not working propertly with ng-options and array
It worked fine when I was using ng-repeat inside option tag's but then the first value were blank so I've started using ng-options...
Read more >Angular ng-options Directive - W3Schools
The ng-options directive uses an array to fill the dropdown list. In many cases it would be easier to use the ng-repeat directive,...
Read more >ngOptions - AngularJS: API
By default, ngModel watches the model by reference, not value. This is important to know when binding the select to a model that...
Read more >Select inside ng-repeat with ng-options and ng-model
The problem is the ng-model, as this is set to items[0] (Client Script) it never gets updated, I have been looking at getterSetter...
Read more >Angular ng-select - npm
Start using @ng-select/ng-select in your project by running `npm i ... <ng-select [(ngModel)]="selectedCar"> <ng-option *ngFor="let car of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The same here @leocaseiro the ng-model is not being updated.
Thanks a million @leocaseiro