I am having a list in angular js with many rows . I wanted to select multiple rowsin the list and add it to another table .
My code is
<li class = "list-group-item listroleitem" ng-repeat='role in roles' ng-click="selectRow(role)
" ng-class="{selectedRole: role === idSelectedRow}">{{role.roleName}}</li>
Controller :
$scope.selectRow = function(name){
$scope.idSelectedRow = name;
};
how to do it ?