I want to set default value of e.name to "ALL" using ng-init
Here is my TEMPLATE code :
<tr ng-repeat="e in employees" ng-init="employees[0] = 'ALL'">
<td>{{ $index + 2}}</td>
<td>{{ e.name}}</td>
<button type="button" ng-click="select(employee)">
Select
</button>
</td>
</tr>
DIRECTIVE link
scope.employees = EmployeeService.query();
Here I want to set default value of e.name to ALL before generating dynamic data
I am getting dynamic data properly in employees and {{ e.name}} from directive
but here I want to show ALL in same <td> before getting dynamic data