angular - Why froala editor not appears? -
i have included froala editor in angular2 project din't seems appear on screen , no errors. have imported required modules app.module.ts
, imported jquery main.ts
, included scripts , styles in angular.cli.json
app.component.ts
<div [froalaeditor]>hello, froala!</div>
app.module.ts
import { browsermodule } '@angular/platform-browser'; import { ngmodule } '@angular/core'; import { formsmodule } '@angular/forms'; import { appcomponent } './app.component'; import { tinyeditorcomponent } './tiny-editor/tiny-editor.component'; import { sortpipe } "app/newpipe"; import "froala-editor/js/froala_editor.pkgd.min.js"; import { froalaeditormodule, froalaviewmodule } 'angular-froala- wysiwyg'; @ngmodule({ declarations: [ appcomponent, tinyeditorcomponent, sortpipe ], imports: [ browsermodule, formsmodule, froalaeditormodule.forroot(), froalaviewmodule.forroot() ], providers: [sortpipe], bootstrap: [appcomponent] }) export class appmodule { }
main.ts
import { enableprodmode } '@angular/core'; import { platformbrowserdynamic } '@angular/platform-browser-dynamic'; import { appmodule } './app/app.module'; import { environment } './environments/environment'; import * $ 'jquery'; window["$"] = $; window["jquery"] = $; if (environment.production) { enableprodmode(); } platformbrowserdynamic().bootstrapmodule(appmodule);
the reason why didnt appears on browser?
Comments
Post a Comment