If you want to get the value from that,
use like this
ng-model="student.name"
On Wednesday, January 27, 2016 at 12:13:30 PM UTC+5:30, Adnan Salahuddin
wrote:
>
> 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.