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

Комментарии • 43

  • @revanthreddy790
    @revanthreddy790 27 дней назад +1

    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?

  • @proplayerak_4747
    @proplayerak_4747 Год назад

    Thank you so much, I have learned lot from you. Keep doing and keep growing ..!
    😍

  • @freirboy5820
    @freirboy5820 Год назад

    great work sir, must continue teching like this.. I have learned many things from this video thanks a lot.

  • @ContentCorner-ou5pl
    @ContentCorner-ou5pl Год назад

    So ,clear explanation .Thank you

  • @prithvidheer9966
    @prithvidheer9966 Год назад

    Helpful Video...Beginner friendly

  • @maheshshinde8097
    @maheshshinde8097 2 года назад

    Very helpful thanks

  • @AryamanRaj
    @AryamanRaj Год назад

    Thank you sir

  • @calm_esh18_04
    @calm_esh18_04 6 месяцев назад

    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 )

  • @madanallakula5239
    @madanallakula5239 Год назад +2

    video voice very low plz next video increase volume

  • @rockytechmax2578
    @rockytechmax2578 10 месяцев назад

    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

  • @sujatadeshmukh5801
    @sujatadeshmukh5801 Год назад

    I try most time bt not apply number validation is number short or long

  • @meghanachethanchethan6671
    @meghanachethanchethan6671 Год назад

    Hai second condition is note worked only required condition work

  • @sumanlatapal885
    @sumanlatapal885 Год назад +2

    But even after submitting the form it's still showing repeat pass is invalid instead of fading away

  • @rajatsingh5942
    @rajatsingh5942 2 года назад

    for me input are not saved

  • @jyotiparmar460
    @jyotiparmar460 Год назад

    sir mere data submit krne pr console pr show nhi ho rh h

  • @TenalisaiCreations
    @TenalisaiCreations Год назад

    Bro it’s coming some errors😢 can you help me

  • @abhigoel8491
    @abhigoel8491 Год назад

    bai angular mein help chiye insta use krta h ?

  • @ibrarhussain3154
    @ibrarhussain3154 2 года назад

    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.

    • @ibrarhussain3154
      @ibrarhussain3154 2 года назад

      *ngIf="FirstName.errors?.['requird'] && FirstName.touched

    • @ibrarhussain3154
      @ibrarhussain3154 2 года назад

      required..............................

  • @pakistanzindabad5647
    @pakistanzindabad5647 Год назад

    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

  • @user-cl4po3fr3c
    @user-cl4po3fr3c 10 месяцев назад

    ngIf directive not working

  • @mainul9950
    @mainul9950 Год назад

    can you share source code please?

  • @khushijha611
    @khushijha611 5 месяцев назад

    can anyone provide link of source code ?

  • @it_056_sahilkumar6
    @it_056_sahilkumar6 Год назад +1

    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??

    • @programmer_rohan
      @programmer_rohan  Год назад +1

      you have to give "dot" not "comma".
      eg. *ngIf="FirstName.errors?.['required']"

    • @it_056_sahilkumar6
      @it_056_sahilkumar6 Год назад +1

      @@programmer_rohan actually I gave *.* (Dot) i mistakenly typed while commenting 🥲

    • @devenshah3653
      @devenshah3653 Год назад

      First Name is required.

      First Name is too short
      First character should be alphabet

  • @shivendrakumarpatel6412
    @shivendrakumarpatel6412 7 месяцев назад

    Can you share source code sir please

  • @shraddhasumansahu1786
    @shraddhasumansahu1786 Год назад

    In this .registrationForm.value.firstname
    I'm getting error can you please tell me how to resolve this !

  • @AmitKumar-tr7pk
    @AmitKumar-tr7pk Год назад

    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

    • @AmitKumar-tr7pk
      @AmitKumar-tr7pk Год назад

      And also in .subscribe in displayMsg it shows property displayMsg does not exist on type 'RegisterComponent

    • @shraddhasumansahu1786
      @shraddhasumansahu1786 Год назад

      Have you resolved this error ?

  • @sachinojha3211
    @sachinojha3211 Год назад +1

    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..

  • @coollife1240
    @coollife1240 2 года назад

    if(this.PWD.value == this.RPWD.valid){
    RPWD error show ho rahi hai

  • @31sar
    @31sar Год назад

    Sir, please GitHub link send kr do😔😔

  • @KK-ke9em
    @KK-ke9em Год назад

    Thanks sir