We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

MaskEdit 'ngModel' it isn't a known property of 'input'

I am using:
     - syncfusion-javascript: ^15.3.26

and 
     - @angular: ^4.0.0

I import mask edit in app.module.ts:

     import { EJ_MASKEDIT_COMPONENTS } from 'ej-angular2/src/ej/maskedit.component';

     @NgModule({
            declarations: [
                   AppComponent,
                   EJ_MASKEDIT_COMPONENTS,


All other components work fine, but for mask edit:

     <input ej-maskedit [(ngModel)]="name" inputMode="ej.InputMode.Text" />

I get error:

     "Can't bind to 'ngModel' since it isn't a known property of 'input'".

It works fine for me in some earlier version. What I am doing wrong ?


Regards,
Milos


2 Replies

MI Milos September 12, 2017 07:38 AM UTC

Sorry it is my mistake. It does not have to do anything with the syncfusion mask edit.

I forgot to import FormsModule. It was Angular issue.


import { FormsModule } from '@angular/forms';

@NgModule({

    imports: [

         FormsModule      

    ],


After peace of code above everything works 


Regards,

Milos




KR Karthik Ravichandran Syncfusion Team September 13, 2017 04:43 AM UTC

Hi Milos, 
 
Thanks for contacting syncfusion support. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Karthik R 


Loader.
Live Chat Icon For mobile
Up arrow icon