title: Select multiple rows in angular js
body: <p>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 . </p>
  
  <p>My code is </p>
  
  <pre><code>&lt;li class = "list-group-item listroleitem" ng-repeat='role in roles' ng-click="selectRow(role)
            " ng-class="{selectedRole: role === idSelectedRow}"&gt;{{role.roleName}}&lt;/li&gt;
  </code></pre>
  
  <p>Controller : </p>
  
  <pre><code>$scope.selectRow = function(name){
          $scope.idSelectedRow = name;
  
      };
  </code></pre>
  
  <p>how to do it ? </p>