Saturday, May 3, 2014

AngularJs form validation with Twitter Bootstrap

Hi there, it has been a long time that I dont write a post on this blog but I have been really busy in the last months. In those months I have been having a look at new technologies, and between these I was studying really hard AngularJs. It is a powerful MVC framework for spa (Single Page Application) you can find more documntation on the official website if you are new and interested in learning (http://angularjs.org). I was writing with AngularJs a form validator that allows you to simply validate form. I just needed few lines of code to create a powerful validator that validates single field and the entire form. Dependencies are:
  • Twitter Bootstrap css
  • angular-growl
  • angular-strap