I want to show a <td> on button press. The TD should also be in a hidden state and page load.
The <td> I want to show also contains a drop down list. I want this <select> to be displayed on first button click.
My Angular table created using ng-repeat is :
<div class="widget-content" ng-controller="getAllBenchersController">
<table ng-table="talentPoolList" show-filter="true" class="table table-striped table-bordered">
<tr ng-repeat="employee in data | filter: testFilter">
<td data-title="'#'">{{$index + 1}}</td>
<td data-title="'Select Account'">
<select>
<option disabled selected value> -- select an option -- </option>
<option id="selectedLocked">Blocked</option>
<option id="selectedBilled">Billed<//option>
<option id="selectedShadow">Shadow</option>
<option id="selectedOnNotice">OnNotice</option>
<option id="selectedPOC">POC</option>
</select>
</td>
<td>
<a><button class="btn btn-success" ng-model="checked">Reserve</button></a>
</td>
</tr>
</table>
</div>
Then I want the button to post a data on its second click. I can do that, but the code for displaying the <td> should not affect the working of second button click function.
I am new to Angular and have no clue how to achieve this.
Can anyone help?