ng-ace
A basic ace editor directive for angular2\angular4\agnular5. base on @seiyria/ng2-ace
Online Demo see https://github.com/giscafer/ng-form-builder
default options
enableBasicAutocompletion: true,
enableLiveAutocompletion: true
default mode: javascript
default theme: chrome
Install
npm i ng-ace
Sample Usage
; ; ;;
Important pieces to note in the HTML template: [ace-editor]
attribute, [text]
, [theme]
, [mode]
, [readOnly]
, [options]
inputs, (textChanged)
,(editorRef)
output. As per Ace, you must also make it a display: block;
and give it a width and height.