@ec.components/ace
This package wraps the ace editor as an Angular Component.
Overview
Installation
1. Install package
npm install @ec.components/ace --save
2. Add Module
import { AceModule } from '@ec.components/ace';
@NgModule({
imports: [AceModule],
})
export class AppModule {}
3. Add CDN
Either add the cdn src to your index.html:
<script src="//cdn.bootcss.com/ace/1.2.8/ace.js"></script>
Or import from ace-builds (in app.module):
import 'ace-builds/src-noconflict/ace.js';
When importing, you also need to import all extensions/modes/themes that you want to use manually.
4. Use it
<ec-ace [(ngModel)]="html" mode="html"></ec-ace>