Skip to main content

Posts

Showing posts with the label directives

AngularJS validation directives library

I wrote a set of directives that make validation in AngularJS a tad simpler. The directives are available at https://github.com/technovert/angular-validation I have detailed about the directives on my company website http://blog.technovert.com/2014/03/angularjs-form-validation-library-directives/ and there is also a jsfiddle to play with http://jsfiddle.net/3vxgy/1/ or

Angularjs and inplace edit

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. Here is my fiddle