@ec.components/ace
TypeScript icon, indicating that this package has built-in type declarations

0.8.7 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @ec.components/ace

Weekly Downloads

1

Version

0.8.7

License

none

Unpacked Size

107 kB

Total Files

17

Last publish

Collaborators

  • felixroos
  • scherzinger