I have a dynamic table being populated using ng-repeat=
How can i make the buttons dynamic , as buttons kind of hard code , all the stop timer buttons are getting disables once the starttimer button is clicked once. And form is getting submitted n number times.
<table class="table">
<tr>
<th>Name
</th>
<th>Employees
</th>
<th>Head Office
</th>
</tr>
<tr ng-repeat="updateLeadEnvir in envirDetailsData">
<td>{{updateLeadEnvir.envirName}}
</td>
<td>{{updateLeadEnvir.envirDesc}}
</td>
<td><button ng-click="hidetimer = {{updateLeadEnvir.envirName}}; startTimer()" ng-disabled="timerRunning">Start Timer</button>
<button type="button" ng-click="stopTimer();hideMsg=true" ng-disabled="!timerRunning">Stop Timer</button>
<div class="col-xs-8 text-center" ng-show="hidetimer == {{updateLeadEnvir.envirName}}" > <timer>{{minutes}} minutes, {{seconds}} seconds.</timer></div>
</td>
</tr>
</table>
startTimer()
function in your description – Louie Almeda Feb 11 '16 at 1:45<timer>
directive as well so you can have multiple copies that function independently. – GregL Feb 11 '16 at 1:46