This package wraps the ace editor as an Angular Component.
npm install @ec.components/ace --save
import { AceModule } from '@ec.components/ace';
@NgModule({
imports: [AceModule],
})
export class AppModule {}
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.
<ec-ace [(ngModel)]="html" mode="html"></ec-ace>