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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

132608 Sep 12,2017 03:21 AM Sep 13,2017 12:43 AM Angular 2
loading
Tags: ejMaskEdit
Milos
Asked On September 12, 2017 03:21 AM

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


Milos
Replied On September 12, 2017 03:38 AM

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



Karthik Ravichandran [Syncfusion]
Replied On September 13, 2017 12:43 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;