Angular 12 tutorial in Hindi #37 Reactive form Validations

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • In this angular 12 version video, we learn how to apply validations on Reactive form in angular 12. This video is made by anil Sidhu in the Hindi language.
    Reactive Form Validation
    Use Form from the last video
    Import Validators
    Apply validations
    Define Getter for fields
    Show errors and Disable button
    code link github.com/ani...
    React js Latest Playlist in hindi : • React tutorial for beg...
    inst id: @code.steps

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

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

    after some video, I watch your video then my basic concept clear.

  • @rajatverma2307
    @rajatverma2307 2 года назад +1

    bhtreen, awesome aaj asa lga ki shi mein kuch tagda bnaya h

  • @PRAKASHKUMAR-rh3fc
    @PRAKASHKUMAR-rh3fc 3 года назад +4

    You missed to add video on validation through 'Template driven Form' & also introduction part of 'Reactive form'

    • @mehakashraf3069
      @mehakashraf3069 2 года назад +1

      Check his English series on it
      You will find out both of them..

  • @vrushalisonawane1154
    @vrushalisonawane1154 3 года назад +1

    very well explained ! Than You Anil

  • @CarlosOrtiz-k1z
    @CarlosOrtiz-k1z Год назад +1

    Thank you for the lesson !!!

  • @vaijayantibhardwaj9171
    @vaijayantibhardwaj9171 2 года назад +2

    hello sir
    me=>> name: new FormControl(' ',[Validators.required, Validators.pattern('[a-zA-Z]+$')]), =>> kr rhi hu but mere validation hide nhi hor rhi h jab me kuchh bhi input kru to.. please sir reply me soon please.

  • @vivektiwari-w3u
    @vivektiwari-w3u Месяц назад

    thank you

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

    Those who are getting invalid error message in html template....
    function should be get
    Eg:
    get user() {return}
    And not : getuser() {return}
    There is a space between get and the name of function....
    Get is a separate keyword

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

    Thanks Sir gee

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

    How to write different error messages for different type of validation
    For example for required the msg will be this field is required for min length msg will be min length is ...

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

    if we had multiple fields then we have to define separate function for each field.

  • @AkhileshYadav-lv3kh
    @AkhileshYadav-lv3kh 2 года назад

    Thank you sir 👍👍

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

    How to give separate Error message of each validation, in case of multiple validations in a field ?

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

    till 50 video of this series, is enough to crack interview?

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

    laajwaab sir gee

  • @MrUjagarsingh
    @MrUjagarsingh 3 года назад

    Good morning sir ji

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

    Validation through template driven form?

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

    Hello bhaiya, I didn't understood the *ngIf condition. I understood why we used "user.invalid && user.touched" but I why we used "user" at the start in the condition with these two other condition. what does it signify?

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

      It is checking if the user property is not undefined

  • @ayush_patel534
    @ayush_patel534 3 года назад

    Super 👍

  • @rajnandaniaghaw1160
    @rajnandaniaghaw1160 2 года назад +2

    I used every steps of your but the invalid message doesn't appear

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

      user:new formControl(' ',[validators.required])
      Validator must be second parameter

  • @GALAXY-yo9oe
    @GALAXY-yo9oe 3 года назад

    nice

  • @MrUjagarsingh
    @MrUjagarsingh 3 года назад

    Is video se pahle wala video sequence main nahin aa raha h

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

    Meine same step follow Kiya but invalid wala msg appear nhi ho raha hai..

    • @vaijayantibhardwaj9171
      @vaijayantibhardwaj9171 2 года назад +1

      name: new FormControl(' ',[Validators.required, Validators.pattern('[a-zA-Z]+$')]), try once more

  • @muhammadrehan2243
    @muhammadrehan2243 3 года назад

    Video39 is repeated, I think you mistakenly uploaded the wrong one. Kindly correct.

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

    in case of facing Invilid error on html template! use question mark!!
    *ngIf="userNameValidate?.invalid

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

      tried but it's not working
      *ngIf="user && user?.invalid && user?.touched
      it's showing the same error Property 'invalid' does not exist on type

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

      @@manishchoudhary2722 use hasError method saw any ref from google!

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

      @@manishchoudhary2722 use hasError method , take refrence from stackoverflow or chatgpt

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

    Thanks sir

  • @ajaykaushik9760
    @ajaykaushik9760 3 года назад

    Video39 is repeated, I think you mistakenly uploaded the wrong one. Kindly correct.