ng2-ace
A basic ace editor directive for angular 2.
Install
npm i -s ng2-ace
Sample Usage
; ; ;; @ { thistext = 'test'; thisoptions = printMargin: false ; this { console; } }
Important pieces to note in the HTML template: [ace-editor]
attribute, [text]
, [theme]
, [mode]
, [readOnly]
, [options]
inputs, (textChanged)
output. As per Ace, you must also make it a display: block;
and give it a width and height.