0.0.4 • Published 6 years ago
ngx-simple-md-editor v0.0.4
NgxSimplemde (beta)
This project was generated with Angular CLI version 6.0.8.
Example
Install ngx-simple-md-editor
npm i ngx-simple-md-editor font-awesome simplemde --save
Add following css to angular.json
//...
"styles": [
//...
"node_modules/simplemde/dist/simplemde.min.css",
//...
],
//...
Import ngx-simple-md-editor in module.ts
import { NgxSimpleMdeModule } from 'ngx-simple-md-editor';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxSimpleMdeModule
],
providers: [],
bootstrap: [AppComponent]
})
To use ngx-simple-md-editor in html:
or <lib-ngx-simple-mde config="settings"> for more information regarding configuration, visit SimpleMDE github Readme.md
Development server (demo app)
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Build
Run ng build
for demo application.
Run ng build ngx-simple-mde
for building library.
Further help
SimpleMDE github official site
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
License
MIT