@yci/editor
v1.0.0
Published
[![Build Status](https://travis-ci.org/yc-ionic/editor.svg?branch=master)](https://travis-ci.org/yc-ionic/editor.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/yc-ionic/editor/badge.svg?branch=master)](https://coveralls.io/github
Downloads
11
Readme
@yci/editor
Installation
- Install the Ionic plugin
npm i -S @yci/editor
- Add it to your app’s NgModule.
// Import your library
import { EditorModule } from '@yci/editor';
@NgModule({
...
imports: [
...
// Specify your library as an import
EditorModule.forRoot()
],
...
})
export class AppModule { }
Usage
Once your library is imported, you can use its service in your Angular application:
import { Editor } from '@yci/editor'
constructor(public editor: Editor) {
editor.edit(...);
}
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
License
MIT © Yu Chen