I'm trying to build a monthly calendar using Angular.js, and I can't seem to find a way of outputting expressions when conditions are satisfied.
<tr>
<td ng-repeat="date in dates">
{{date}}
</td>
{{'</tr><tr>' | if date.getDay() === 0}}
</tr>
Or
<tr>
<td ng-repeat="date in dates">
{{date}}
{{ if date.getDay() === 0 expr = '</tr><tr>' else expr = ''}}
</td>
{{expr}}
</tr>
How could I achieve this?
Thanks.