Sorry for my english and im new to angularjs
I have a system so people can add there name to a break list.
i have a simple code for that.
Angular JS
function ExampleCtrl($scope){
$scope.people = [];
$scope.addPerson = function(){
var person = {
name: $scope.name,
};
$scope.people.push(person);
};
$scope.removePerson = function(index){
$scope.people.splice(index, 1);
};
}
HTML
<input type="text" ng-model="name">
<button ng-click="addPerson()"></button>
<tr ng-repeat="person in people">
<td>{{ person.name }}</td>
<td> </td>
<td><button ng-click="removePerson($index)"></button> </td>
What i want to make is a timer that starts at 00:00 when adding a person to the list and goes up for each secound. And for each new person that adds to the list, is a new 00:00 on the row(Next to there name), and starts counting. How can i manage to do this so each person has there own time?
EDIT:
Here is a picture of the webapp. Each time i add a new person, i want a counter to start from 00:00 and go upwards each secound, next to the name. (Red square)