I'm trying to replace the textbox with the PrimeNG calendar but keep the functionality of it storing the value that will be saved in the database.
I thought that maybe something like combining input and p-calendar
would work:
<p-calendar #CreateDate [(ngModel)]="CreateDates" [value]="{{CreateDates}}" [showIcon]="true" dateFormat="dd.mm.yy"></p-calendar>
but this obviously doesn't work and results in a lot of errors.
The exception I am getting:
Parser Error: Got interpolation ({{}}) where expression was expected