I would like to implement in a bootstrap modal a table for add/remove dinamically rows in angularJS. Here the example in img:

Shortly, I would like to add a lot of rows on the last button, but delete the other back. How to do in angular? For now I do this:
HTML
<table>
<tbody>
<tr ng-repeat="row in rows">
<td ng-bind-html="row.SocietyBorrower" angular-compile="nRows"> </td>
<td><label class="fs-label">{{fsFactory.getLabel(labels, pageName, 'Form_Label_NDGSocieta')}}</label></td>
<td>   </td>
<td ng-bind-html="row.NDGSociety" angular-compile="nRows"></td>
<td ng-show="row.LastRow">
<a href="#" ng-click="addNewRow()" class="fs-form-plus-minus"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span></a>
</td>
<td ng-hide="row.LastRow">
<a href="#" ng-click="deleteRow($index)" class="fs-form-plus-minus"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span></a>
</td>
</tr>
<tr><td></td></tr>
</tbody>
AngularJS
$scope.rows = [{
"SocietyBorrower": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'SocietyBorrower')}\" name=\"SocietyBorrower\" class=\"fs-form-table-society\" ng-model=\"subItem.SocietyBorrower\" ng-model-options=\"defaultNgOptions\" />"),
"NDGSociety": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'NDGSociety')}\" name=\"NDGSociety\" class=\"fs-form-table-ndg\" ng-model=\"subItem.NDGSociety\" ng-model-options=\"defaultNgOptions\" />"),
"LastRow": false
}];
$scope.nRows = $scope.rows.length;
$scope.addNewRow = function () {
$scope.rows.push({
"SocietyBorrower": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'SocietyBorrower')}\" name=\"SocietyBorrower\" class=\"fs-form-table-society\" ng-model=\"subItem.SocietyBorrower\" ng-model-options=\"defaultNgOptions\" />"),
"NDGSociety": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'NDGSociety')}\" name=\"NDGSociety\" class=\"fs-form-table-ndg\" ng-model=\"subItem.NDGSociety\" ng-model-options=\"defaultNgOptions\" />"),
"LastRow": true
});
$scope.nRows++;
};
$scope.deleteRow = function (index) {
if ($scope.nRows < 1) {
$scope.rows.splice(index, 1);
$scope.rows.push({
"SocietyBorrower": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'SocietyBorrower')}\" name=\"SocietyBorrower\" class=\"fs-form-table-society\" ng-model=\"subItem.SocietyBorrower\" ng-model-options=\"defaultNgOptions\" />"),
"NDGSociety": $sce.trustAsHtml("<input type=\"text\" ng-class=\"{'fs-form-invalid' : fsFactory.checkHasError(errors, 'NDGSociety')}\" name=\"NDGSociety\" class=\"fs-form-table-ndg\" ng-model=\"subItem.NDGSociety\" ng-model-options=\"defaultNgOptions\" />")
});
} else {
$scope.rows.splice(index, 1);
$scope.nRows = $scope.rows.length;
}
};
Any suggest? I try to ng-hide/ng-show the add/delete button by if last row. Correct? Obviously, at start, a 1st row must empty and only with add button. How to do? Thanks a lot!