On Thursday, May 22, 2014 5:00:58 AM UTC-6, James Crosswell wrote:
I'm not using JS server side no, so server side validation isn't an issue.I've just gone with the scotch.io approach for now. It's a little bit laborious coding up all the show/hide logic for the messages but works well. I guess it's the sort of thing some custom directives could do...Cheers,James
On Wednesday, 21 May 2014 12:13:38 UTC+2, Richard Seldon wrote:James,Good question. I too would welcome any insights.At the moment, am using very similar approach to the scotch.ioexamples in link you provided. For form specific validation like simply required, then ng-required attribute on select form elements, and the standard HTML5 required attribute is usually enough. Most resources I have studied on AngularJS appear to be doing something very similar but perhaps the community can offer different ideas.Are you using JS server side in Node etc? For that, have started adopting https://github.com/chriso/validator.js Find this works nicely for most situations, and can be further supported with lodash / underscore utility methods. Could conceivably use that client side too. Best regards,Richard.On 21 May 2014, at 19:00, James Crosswell <james.c...@gmail.com> wrote:I'd be interested in this too. I found this article on form validation with Angular. The result is great but so much more code to put it together than with Parsely (especially for simple stuff like "required" field validation).Is there a "recommended" approach to form validation with Angular?Cheers,James
On Monday, 28 January 2013 21:43:53 UTC+1, clayton collie wrote:Anyone looked at integrating ParsleyJs ? Or does Angular cover most of this territory ?
댓글 없음:
댓글 쓰기