I want to do inline editing using angular material. Below is my code.
usertypearray = [{
Id: 1,
Name: "bhushan",
Color: 1
},
{
Id: 2,
Name: "suryakant",
Color: 2
}
];
<tr ng-repeat="x in usertypearray">
<td>
<span>{{x.Name}}</span>
</td>
<td>
<div layout="row" layout-xs="column">
<div flex="40">
<md-button flex="3" class="md-primary md-fab" title="edit" ng-click="EditUDET()">E</md-button>
</div>
<div flex="10">
<md-button flex="3" class="md-primary md-fab" title="delete" ng-click="DeleteUDET()">A</md-button>
</div>
</div>
</td>
</tr>
after clicking on edit input box should appear the instead of edit button save and cancel button should be visible.
EditUDETshould appearEditUDETand vice versa? I don't understand the question