AngularJS is an awesome framework and Angular Directives make this framework super awesome :)
AngularJS directives help us extend the existing HTML DSL. You can create new tags, extend functionality using existing tag and create reusable component.
I recently created a Inplace editable control in AngularJS. It basically allows to do in place editing for elements like H1, H2, H3 div etc, basically all read only control. I took the initial idea from this fiddle and added
- Text selection on edit.
- Cursor positioning
- Handle the Enter key press.