Retrieve selected row indices in Angular 13 by binding checkboxes to a boolean array and filtering for true values.