Angular - Email pattern validation

Discussão em 'Angular' iniciado por newbie, Dezembro 17, 2024.

  1. newbie

    newbie Guest

    <label for="userEmail">User Email:</label><br />
    <input type="email" class="userMobile" id="userEmail" name="userEmail"
    [(ngModel)]="selectedLocker.lockeruseremail" required
    pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.(com|in)$"/><br />


    The pattern requires the email to be in the format "example@example.com" or "example@example.in", but it still allows submission without ".com" or ".in".

    Continue reading...

Compartilhe esta Página