martinsvb / ng2-summernote

Angula 2.0 summernote wysiwyg editor integration
14 stars 12 forks source link

NgModel isn't a known property of ng2-summernote #10

Open jsmelcher opened 7 years ago

jsmelcher commented 7 years ago

I have copied the code from the Read.Me/samples. And have ran into issues other people have presented. My module doesn't seem to enjoy ngModel parameter. But if I omit it, it won't show up with this issue #8. I may be doing something stupid but I don't think I am? The error message is found below.

Exception:

Call to Node module failed with error: Error: Template parse errors: Can't bind to 'ngModel' since it isn't a known property of 'ng2-summernote'.

  1. If 'ng2-summernote' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
  2. If 'ng2-summernote' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

<ng2-summernote [ERROR ->][(ngModel)]="data" height="500" >

Update on versions: npm: 5.0.4 @ angular/cli: 1.0.6 node: 6.10.3 os: win32 x64 @ angular/animations: 4.1. @ angular/common: 4.1.2 @ angular/compiler: 4.1.2 @ angular/core: 4.1.2 @ angular/forms: 4.1.2 @ angular/http: 4.1.2 @ angular/platform-browser @ angular/platform-browser @ angular/platform-server: @ angular/router: 4.1.2