So, I am working on an Angular2 application. I have a table where each entry represents a student and includes a checkbox
<input class="mycheckbox" type="checkbox" [value]='student.StudentId'>
At some point, the user will click on the button, which should receive the value of all selected flags.
I am not sure to whom I should address this.
One idea is that each student will have the value checked or not. And this needs to be done using two-way bindings.
However, this will mean that every time you have to go through all the students
Is this the best option available? And is there something that matches the following jQuery:
$('.mycheckbox:checked').each(function(){
source share