Handle the table with ng-repeat directive