U
U
user577652018-06-19 14:14:55
Angular
user57765, 2018-06-19 14:14:55

Selected item not showing in 'select'?

There is a "select" component that should display the selected element owned by the user. But instead, it displays the selected element, which comes first in the list. If I add [ngValue]="sprPrit.prit_id"that the selected element in general becomes empty. What can I be doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shamansyberia, 2018-06-21
@shamansyberia

[(ngModel)]="nameValue" name="Select nameValue"
and in option [value]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question