Note that From AngularV13, it changed a bit from an old code like this *ngIf=" emailAddress.errors && emailAddress.errors?.['required'] && emailAddress.touched" As a remainder, the '?' is to ensure that the errors object is not null
A little correction. "?" is not to ensure that the errors object is not null. It is called safe navigation operator or optional chaining and it is introduced in JS/TS to prevent breaking the application if errors object is null or undefined. Thanks for bringing this.
from past one year im learning angular ,u r the best tutor explained angular concepts in a great understanding way👏
Thank you very much bro 😀
Bit old,but you are the gold Tutor sir..🥳❤
Thank you so much 👍
Awesome
Thank you
Best tutorial 💖
Thanks 👍
great bro...
Thanks
Note that From AngularV13, it changed a bit from an old code like this
*ngIf=" emailAddress.errors && emailAddress.errors?.['required'] && emailAddress.touched"
As a remainder, the '?' is to ensure that the errors object is not null
A little correction. "?" is not to ensure that the errors object is not null. It is called safe navigation operator or optional chaining and it is introduced in JS/TS to prevent breaking the application if errors object is null or undefined. Thanks for bringing this.
@viewchild is really necessary here to reset the form because in the onsubmit method itself we are getting the myform right?
Yes, in template driven forms, we need to either pass the reference of our form through the onsubmit function or we can access using @viewchild.
@@WebTechTalk thanks for the reply
well explained!! bro
Thank you very much bro
Well explained!👍
Thank you
Well explained
Thank you 😀