V
V
Vladimir2016-05-16 18:11:19
Angular
Vladimir, 2016-05-16 18:11:19

How to use ng-repeat with ng-selected?

options in the select list are formed using the ng-repeat directive, the current option is selected using ng-select
The problem is that if I change the list on the basis of which the select list is built, the selected option is lost
An example can be found here https://plnkr.co /edit/tyrWl7SeNrUwi5YkN2nt?p=preview
First you need to press Do then Do2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoliy Mikhailov, 2016-05-17
@yamaoto

something like this?
https://plnkr.co/edit/XzsKaaZ8NhqTJOCFYW2a?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question