Friday 14 October 2022

Angular - Validate Required Element Value

Use the following code to check the value of the required element.  


<div *ngIf="fname.touched && fname.invalid" class="alert">
            <p *ngIf="fname.errors?.['required']">FirstName is mandatory</p>
            <p *ngIf="fname.invalid">Invalid First Name</p>
        </div>




No comments:

Post a Comment

IDCS - Identity Federation with Azure and Google (SAML IDP & Social IDP)

The setup involves Identity Cloud Service (IDCS) acting as the central identity provider, facilitating seamless authentication and authoriza...