ng model not working in app.component.html file. What should I do?
Thanks in advance.
<!-- Category Edit Form-->
<ion-card class="ion-padding" *ngIf="EditForm">
<ion-label position="stacked"> <strong>Edit Category</strong></ion-label>
<ion-input type="text" [(ngModel)]="UpdateCategory"> </ion-input>
<div>
<ion-icon class="ion-float-right" name="checkmark-outline" size="large" slot="icon-only" color="primary"></ion-icon>
<ion-icon class="ion-float-left" (click)="closeForm()" name="close-outline" size="large" slot="icon-only" color="danger"></ion-icon>
</div>
<br/>
</ion-card>
Error Message
Canât bind to ângModelâ since it isnât a known property of âion-inputâ.
If âion-inputâ is an Angular component and it has ângModelâ input, then verify that it is part of this module.
If âion-inputâ 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.ng