I have a calender and I want to disiable a certain date eg 10/7/2018, I am using p-calendar
Here is what I have done so far
<p-calendar formControlName="date" [inline]="true" [disabledDays]="[10]" [minDate]="minimumDate" tabindex="0">
<ng-template pTemplate="date" let-date>
<span [ngStyle]="{backgroundColor: (date.day ==10) ? '#7cc67c' : 'inherit'}" style="border-radius:50%">{{date.day}}</span>
</ng-template>
</p-calendar>
This does not work ,
What is wrong with my code?