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

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

I am using:
     - syncfusion-javascript: ^15.3.26

     - @angular: ^4.0.0

I import mask edit in app.module.ts:

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

            declarations: [

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 ?


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';


    imports: [



After peace of code above everything works 



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. 
Karthik R 

Live Chat Icon For mobile
Up arrow icon