Hi Folks,

I am using anuglar 2 with beta 1.

*In Html:*
 <select class="form-control" size="8" multiple="multiple" [(ngModel)]=
"selectedStudent">
<option *ngFor="#student of Students" [value]="student.StudentId">
{{student.Name}}
 </option>
<button type="button" class="btn btn-block" (click)="StudentFunction(
selectedStudent)">Value</button>

*In TypeScript:*
StudentFunction(item){
console.log(item);
}

I am getting only one value. how to display get more values if multiple 
selected?
I am waiting for you 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