Does anyone know why I am getting the following error?
Does it not work with Ionic 4?
I am importing in my app.module:
import { CalendarModule } from 'ion2-calendar';
imports [
...
CalendarModule
],
<ion-calendar [(ngModel)]="date"
(change)="onChange($event)"
[type]="type"
disableDays=[1,2,3,4]
[format]="'YYYY-MM-DD'">
</ion-calendar>
I’m getting the error:
Can’t bind to ‘ngModel’ since it isn’t a known property of ‘ion-calendar’.
- If ‘ion-calendar’ is an Angular component and it has ‘ngModel’ input, then verify that it is part of this module.
- If ‘ion-calendar’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.
- To allow any property add ‘NO_ERRORS_SCHEMA’ to the ‘@NgModule.schemas’ of this component