Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

put validation on the cell number in angular

<div class="form-group row">
                <input type="text" class="form-control" appPhoneMask placeholder="Mobile Number" autocomplete="off"
                    [ngClass]="{ 'is-invalid': (f.inputCountryCode.errors && mobileNumberform.submitted) }"
                    formControlName="inputCountryCode">
                <div *ngIf="(f.inputCountryCode.invalid ) || (f.inputCountryCode.invalid && (f.inputCountryCode.dirty || f.inputCountryCode.touched))"
                    class="invalid-feedback">
                    <div *ngIf="f.inputCountryCode.errors.required">This field is required.</div>
                    <div *ngIf="f.inputCountryCode.errors.pattern">Invalid phone number.</div>
                </div>
            </div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: fetch hook 
Javascript :: string to number javascript shortcut 
Javascript :: java script names starting with b foreach 
Javascript :: speed of sound 
Javascript :: window.print specific div 
Javascript :: data-sap-ui-component-preload-xxx 
Javascript :: implement dynamic import on event handler 
Javascript :: array object make api format javascript 
Javascript :: vue get key inside component 
Javascript :: &lt;xsl:apply-templates select node text subnodes all 
Javascript :: Component on new window 
Javascript :: react computed hook 
Javascript :: Bracket Spacing .prettierrc 
Javascript :: acceder a variable css desde js 
Javascript :: find a big length friend from array javascript finding longest string in array in javascript 
Javascript :: Public properties can be created via Instance public fields 
Javascript :: change class on resize window jquery 
Javascript :: show capture of createCapture p5 js 
Javascript :: joi validation error message in path parameter value array to string 
Javascript :: after storing array array state is empty 
Javascript :: JavaScript detect card type 
Javascript :: join () method to join all elements of the array into a string to reverse an string 
Javascript :: golang json time 
Javascript :: unique elements 
Javascript :: tampermonkey all pages 
Javascript :: angular 8 on mouseover 
Javascript :: multiple all elements in array 
Javascript :: how to apply scrollbar in textarea 
Javascript :: javascript remove files name starts with 
Javascript :: Uploading profile pic with react.js node.js express.js REST API to sqlite DB 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =