While I think the built in form validation is pretty decent I would like to extend it to be more model-based for the following reasons:
1) I should be able to re-use the model validation client-side and server-side (nodejs) 2) I can automatically generate the client-side html (error labels). Gets a bit boring and error-prone writing these manually ;) Without going into too much detail (can do if more required) my solution involves creating two directives, - ValidateForm - this directive generates the client-side html which will help display the errors - Validate - this directive sets up the custom validation parsers I've got a basic solution which is working for me however I have one last issue which is causing the validation / binding to stop working. Was hopeful that someone can spot my problem (been going at it for a few hours but getting nowhere). Note that I have simplified the code greatly in order to identify the issue..ie..my ValidateForm directive just adds a hardcoded label and recompiles. In reality it will be more dynamic. http://plnkr.co/edit/FK8q9OtubeE2bdAYB37n Thanks in advance!! -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.