I'm using Angular 14 and PrimeNG 14. I have a p-calendar component that I would like to style with a red border color if the user has not entered a value. I have
<p-calendar
[showIcon]="true"
[ngClass]="{'border-red-500': this.submitted && this.form.get('myDate')?.hasError('required')}"
formControlName="myDate"></p-calendar>
However, this does not do anything to change the style. What is the proper way to change the border color of the p-calendar component given certain conditions?