-
Notifications
You must be signed in to change notification settings - Fork 2k
client-side form validation with ng-messages. #759
Conversation
@rhutchison @lirantal not directly about the PR itself but I think we need to add to 0.5.0 conventions another item about refactoring all of the Angular code to remove the If you guys agree, then we should already start enforcing that with new PRs and refactor the rest before we release next time. We could even do it for 0.4.x because it wouldn't break anything, it's just a style change really. |
@ilanbiala I agree with removing it, but I would like to do a single PR for that. We can do it before this is merged or after - up to you guys. |
+1 on removing the |
LGTM. I've tested this, and it works really well. I really like the implementation, as it's easy to add to any form. I would like to share a possible limitation, or tricky use case though... I tried playing around with ng-messages by adding validation to the Chat Example. This didn't function quite right. The Overall, this feature really enhances the UI. Thanks @rhutchison |
@rhutchison if possible enforcing for all new PRs will be best, and then 1 PR at the end before a release to fix all the existing/remaining ones so we don't have to keep rebasing and doing that stuff like we had to do with the spacing PR. |
ecc6b29
to
e551ed7
Compare
closing to reopen/rerun test |
I'll have to review when I'm at a computer. If I don't get to this in a week or so, just remind me because I'm on vacation for the next week and I probably won't be near a computer. |
bc00951
to
0c70f5f
Compare
Once data- is put back in for consistency (at least for this PR), it will LGTM. |
so are we in favor of removing data-* or keeping it? |
I'm in favor of removing. |
+1 for removing. |
Closes/supersedes #247 |
+1 for removing |
1626322
to
194b7d1
Compare
remove data prefix from attributes. fix tests
194b7d1
to
8015476
Compare
Just tested this with the most recent changes.. Everything seems to be working. LGTM. |
Good, thanks. |
client-side form validation with ng-messages.
Add validation on the client to validate form data prior to posting to the server.