Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

forms should allow "form-level" validation #631

@vojtajina

Description

@vojtajina

Use case:

  • confirm (re-type) password
  • datepicker from / to (to must be greater)
  • more

Problems with current design:

  • difficult to access the form from controller (you can only access the root form and listen on its "$validate" event, which works, but...), so probably want to add "ng:validator" attribute for forms ?
  • then, when doing the validation, we need to access the widgets, because you can fire $valid/$invalid only on widget (not possible on form level) and accessing widgets is tricky...

Check out this ugly sollution of confirm password with current design:
http://jsfiddle.net/vojtajina/AVGMQ/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions