How to Add Validators in Angular 13 | Register Form in Angular
HTML-код
- Опубликовано: 20 фев 2022
- In this video, I have added some validators in the Register form which we have designed and coded in previous video.
Watch the full video to know more.
Register Form Design Video Link : • Registration Form usin...
#angular, #angular13, #registerforminangular, #validatorsinangular, #requiredvalidatorinangular, #validators
This is the BEST explanation I found for Angular validations. Also can you PLEASE make video about how to connect to and work with Angular and SQL Server?
Thank you so much, I have learned lot from you. Keep doing and keep growing ..!
😍
great work sir, must continue teching like this.. I have learned many things from this video thanks a lot.
So ,clear explanation .Thank you
Helpful Video...Beginner friendly
Very helpful thanks
Thank you sir
The Radio button error message is Displaying by default ( i.e; even refreshing it ) . How to fix it . ( Without selecting the radio , click the submit button then the error message will display )
video voice very low plz next video increase volume
sir video ke last mai submit karne ke baad true to aaraha hai lekin data kaha dekhe jo submit kiya hai wo abhi console me nahi dik raha hai
I try most time bt not apply number validation is number short or long
Hai second condition is note worked only required condition work
But even after submitting the form it's still showing repeat pass is invalid instead of fading away
Same
for me input are not saved
sir mere data submit krne pr console pr show nhi ho rh h
Bro it’s coming some errors😢 can you help me
bai angular mein help chiye insta use krta h ?
I tried this but when i apply *ngif then the firstname required is hide and doest not work. when i tried to remove *ngif then it show again, i dont know what is the prblm.
*ngIf="FirstName.errors?.['requird'] && FirstName.touched
required..............................
Dono error 1 time me hi show ho rahy hai 1 field pe
E.g
First name is too short
First name starts with alphabet
ngIf directive not working
can you share source code please?
can anyone provide link of source code ?
9:19 i followed the same as yours....... even i typed the same code as yours but...... i got errors
ERROR : Template parse errors:
Parser Error: Unexpected token [ , expected identifier or keyword at column 19 in [FirstName.errors?,['required']] ............ & so on
can you please look at this...... & tell me why it's showing error??
you have to give "dot" not "comma".
eg. *ngIf="FirstName.errors?.['required']"
@@programmer_rohan actually I gave *.* (Dot) i mistakenly typed while commenting 🥲
First Name is required.
First Name is too short
First character should be alphabet
Can you share source code sir please
In this .registrationForm.value.firstname
I'm getting error can you please tell me how to resolve this !
I m facing an issue by creating this.registerForm.value.firstname,
this.registerForm.value.lastname,
Till pwd in register.component.ts..
I checked video thrice everything is OK but it shows type string null undefined is not assignable to type String.
Type underdefined is not assignable to type syring
And also in .subscribe in displayMsg it shows property displayMsg does not exist on type 'RegisterComponent
Have you resolved this error ?
If (this.PWD.value == this.RPWD.value)
...This line is creating errors
I want to how this RPWD is written here...
I have written everything same as your code , only instead of PWD I have declared "pass" in my code..
I'm using Angular 14..
check the getter methods for PWD and RPWD
@@programmer_rohan Solved, thanks
if(this.PWD.value == this.RPWD.valid){
RPWD error show ho rahi hai
RPWD.value karo
RPWD.valid nahi
@@programmer_rohan thanks
Sir, please GitHub link send kr do😔😔
Thanks sir