Currently, I am utilizing ng-bootstraps datepicker to showcase user data on a daily basis. I have implemented a custom day template to apply specific CSS classes.
<ng-template #customDay let-date>
<div
class="custom-day"
[ngClass]="evaluatePresenceType(date)"
>
{{ date.day }}
</div>
</ng-template>
However, the issue is that this method is called multiple times for each day, which is not the most efficient way to handle it. Is there a way to apply a CSS class to every day just once during the rendering of the datepicker, rather than every time I interact with it?