In this post I will show how perform client side data validation with AngularJS. I will use both built-in directives, both custom directives.
AngularJS has many directives to run form validation. The following are only those usable on a classic input field...
Some of these (like required, pattern, etc.) repeat the behaviour of the new HTML5 attributes. The advantage of using AngularJS directives instead of classic HTML5 attributes, is that AngularJS way allows to mantain the two way data binding between model and view.
Your new post is loading...