X Tutup
Skip to content

Custom validator #5389

@ghost

Description

Please look at this code:
http://plnkr.co/edit/0Jazt5t523uh40R9F7Pk?p=preview

in input tag type attribute does not work. How should I write two validation for one element? I have another question, in this code there is a password input that has no validator in code, it's validator has been set in markup, but still I have to define its control in ControlGroup, is there a way to mix local template validators with code-side validators and remove those definitions from code? because this has made my code very long, defining control for each input in a form with 30 input. something like this: <input ng-control="password" #password="formGroup" required>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup