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

Oracle Fusion - Transfer Order End To End Process.

Transfer orders can be used to move orders from one organization to another. This process is similar to an inter-organization transfer but ...