i create a plunker and it having the table and consist of two fields name and age are saving from the form. After saving the data Edit button will generated dynamically on each table row.
<script>
var app = angular.module('plunker', []);
app.controller('MainCtrl', function ($scope) {
$scope.data=[]
$scope.save=function(form){
$scope.data.push(form)
$scope.form={}
});
</script>
<body ng-controller="MainCtrl">
<hr>
<div class="row">
<div class="col-md-5 col-lg-5">
<form>
<input type="text" class="form-control" ng-model="form.name"><br>
<input type="text" class="form-control" ng-model="form.age"><br>
<button type="button" ng-click="save(form)">save</button>
</form>
</div>
</div>
<table class="table striped">
<tr>
<th>name</th>
<th>age</th>
</tr>
<tr ng-repeat="item in data">
<td>{{item.name}}</td>
<td>{{item.age}}</td>
</tr>
</table>
https://plnkr.co/edit/vBrPlOAitIAALKcbT3Q8?p=preview
please help me how to do this