Ciao Fabrizio,
secondo me è l'approccio errato, prova a creare un oggetto
{selectID:string, options:ComboItem[]}[] e lo popoli mettendo degli id
univoci ad ogni tag select, poi nella (change) passi non
$event.target.value, ma solo $event.target in modo da leggere l'id della
select che ha scatenato l'evento, a questo punto fai nuovamente il binding
delle option togliendo il valore selezionato dagli altri, chiaramente devi
anche controllare ed eventualmente salvarti il valore selezionato se c'è,
per risettarlo dopo il nuoco binding
Il giorno lunedì 22 ottobre 2018 15:58:20 UTC+2, Fabrizio Pititto ha
scritto:
>
> Hello.. i have a multirow select that bind to the same list of option.
> what i need to accomplish is that when one option is selected into a select
> than this option need to be hidden to the other select. i started to write
> the code but i0m stuck at this point:
>
> https://next.plnkr.co/edit/NM4Tj4mrSV6p0Oa0?open=lib%2Fapp.ts&deferRun=1
>
> can someone help me to complete the function in order to obtain what i
> need.?
> thank you.
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.