Angular Content Editable Component
Simple Angular 1.5 component making wrapped text elements editable.
Features:
- Event handlers for text change and apply
- Toggle editable element programmatically
- Max length validation
- Keyboard support for
ENTER
&ESC
by applying and dismissing changes respectively
How to use it
- Installation
$ npm install --save angular-contenteditable-component
- Module Load
app.js
;;...angular;
index.html
... Text Here is Editable!...
Example
app.js
;; {} thistext = 'This is a random text'; { thisactive = !thisactive; } { console; thistext = text; } { console; thistext = text; thisactive = false; } angular;angular ;
index.html
... {{vm.text}}...