Hi!
On Wed, Aug 22, 2012 at 7:54 PM, William Lepinski <
wil...@gmail.com> wrote:
> Thanks for the link!
> I didn't know this group.
This is a group for
http://angular-ui.github.com/.
So, now you've got 2 solutions, both working slightly differently:
1)
http://jsfiddle.net/pkozlowski_opensource/GcxuT/23/ will compare
value in a second field with _model_ value of the first field
2)
http://jsfiddle.net/S8TYF/ will compare value in a second field
with _input_ value of the first field
The difference might be subtle but has practical consequences: with
(2) the confirm validation will kick-in as soon as you start typing
anything in the first field. With (1) the confirm validation will
kick-in only after the first field is valid. In the e-mail confirm
example it means that you won't start showing confirmation errors till
e-mail validation errors are sorted out (so a user can focus on one
error at the time).
Cheers,
Pawel