While calling from html facing a issue like
Cannot call a class as a function
<ejs-richtexteditor id='defaultRTE' [toolbarSettings]='tools' [(ngModel)]="newMessage"
(click)="this.notEntered=false" [enableResize]='false' [showCharCount]='true' [maxLength]='2000'>
ejs-richtexteditor>
core.js:6456 ERROR TypeError: Cannot call a class as a function
at _classCallCheck (classCallCheck.js:3)
at new RichTextEditor (ej2-richtexteditor.es2015.js:19924)
at RichTextEditorComponent._createSuperInternal (createSuper.js:12)
at new RichTextEditorComponent (ej2-angular-richtexteditor.js:36)
at NodeInjectorFactory.RichTextEditorComponent_Factory [as factory] (ej2-angular-richtexteditor.js:169)
at getNodeInjectable (core.js:3549)
at instantiateAllDirectives (core.js:10259)
at createDirectivesInstances (core.js:9608)
at Module.ɵɵelementStart (core.js:14858)