Hi,
I'm currently generating a horizontal calendar using the following code:
<tr ng-repeat="employee in planning">
<td> {{employee.firstName}} {{employee.lastName}}</td>
<td class="calendar-unit" ng-repeat="day in days">
{{day.date()}}
<div class="assignment" ng-repeat="assignment in
getAssignments(employee,day)">
{{assignment.type}}
</div>
</td>
</tr>
Days contains momentjs dates, employee are normal objects. For each day, I
want to list the assignments for that day & employee, but using a function
call inside a ng-repeat causes $digest errors. (because it creates a new
array everytime, as far as I understand?)
Is there a more angular / cleaner way to approach this, or how could I get
the getAssignments() to work, so that it uses the ng-repeat values?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.