Closed TekSiDoT closed 7 years ago
Most of our projects are not built on or with angular-cli.
To be honest we have moved on to another editor, as the Angular2 lib and its support do not seem to be a priority for Froala right now.
That is fine, @TekSiDoT. Could you please let us know what are you building with? We currently have integrations for angular-cli
, webpack
, system.js
, aot
and jit
.
Back then, the project we tried Froala on was built using webpack / jit.
Following the sample implementation the following snippet causes
Uncaught Error: Unexpected value 'FroalaEditorDirective' declared by the module 'AppModule'(…)
:app.module.ts:
import { FroalaEditorDirective, FroalaViewDirective } from '../../node_modules/angular2-froala-wysiwyg/lib/froala.directives';
@NgModule({ imports: [ ... ], declarations: [ AppComponent, HomeComponent, ..., FroalaEditorDirective, FroalaViewDirective ], providers: [ ApiService, XmlService, LoggingService, WebSocketService ], bootstrap: [AppComponent] })