What you need is 2 `*ngFor`, one that you already have, and another in the 
other select with a different array, then in click of the transfer button, 
knowing the selected variables, assign the ones selected to the other 
array, say it's name is 'selectedStudents', and then proceed to remove the 
selected ones from the first array, the `students` array.

El miércoles, 27 de enero de 2016, 1:43:30 (UTC-5), Adnan Salahuddin 
escribió:
>
> Hi developer,
> I am using angular 2.
>
> Here is my sample code:
> <div class="col-xs-2">
>                 <select class="form-control" size="8" multiple="multiple">
>                     <option *ngFor="#student of students" [value]="
> student.name">{{student.name}}</option>
>                 </select>
>             </div>
>             <div class="col-xs-2">
>                 <button type="button" class="btn btn-block"><i 
> class="glyphicon 
> glyphicon-forward"></i></button>
>                 <button type="button" class="btn btn-block"><i 
> class="glyphicon 
> glyphicon-chevron-right"></i></button>
>                 <button type="button" class="btn btn-block"><i 
> class="glyphicon 
> glyphicon-chevron-left"></i></button>
>                 <button type="button" class="btn btn-block"><i 
> class="glyphicon 
> glyphicon-backward"></i></button>
>             </div>
>             <div class="col-xs-2">
>                 <select class="form-control" size="8" multiple="multiple">
>                     <option></option>
>                 </select>
>             </div>
>
> how to transfer the data (e.g student.name) from left side multiselect 
> box to right side multiselect?
> I am waiting for your response. Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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.

Reply via email to