12) Life Cycle Hooks - 2 | ngDoCheck | ngAfterViewInit | ngAfterViewChecked | Code Nanban

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

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

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

    Hi bro,
    I want to thank you for explaining the angular in Tamil . It is really hard to find the tutorials in Tamil. Though we know English, learning in mother tongue feels good . These videos really helped me in understanding the key concepts.
    Once again thank you code Nanbha..

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

    Bro neega vera level. Interview la crack panalam Awesome Explanation. Keep Upon going...

  • @gunasekaranpalanisami6182
    @gunasekaranpalanisami6182 4 года назад

    super ji, enna mari concepts, vera level

  • @mohanprasathr1483
    @mohanprasathr1483 5 лет назад +1

    Thank u bro... Keep posting more angular concepts.. It is more helpful.. Soon post a video of application with all important concepts.

    • @CodeNanban
      @CodeNanban  5 лет назад +1

      Sure, thank you for the support

  • @luckyvignesh5363
    @luckyvignesh5363 4 года назад

    semma usefull content jiii

  • @jptechnoservice9013
    @jptechnoservice9013 4 года назад

    Good explanation

  • @rajmohangurumoorthy928
    @rajmohangurumoorthy928 3 года назад +3

    bro, I am a beginner. but it feels difficult to understand. can you upload real examples? or pls suggest any

  • @vigneshvenkadesan1563
    @vigneshvenkadesan1563 4 года назад

    Very good explanation, bro

  • @enakkuennapaa1301
    @enakkuennapaa1301 4 года назад +1

    Hi bro, great effort and its very useful, two doubts bro pls clarify, i tried the above hooks,
    1. After changing a value by view child in ngAfterViewInit(){}, in child onchages() is need to be trigger right but its not triggering, logs are below. correct me if i am wrong.
    2. second doubt is after changing value in ngAfterViewInit() via viewchild i am getting error, in video u showing same error but while when using ngAfterviewchecked() and resolving through zero settimeout function. error (ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'null: toparentviaviewchild'. Current value: 'null: datachangedfromparent'.) tried using settimeout also but can't abke to resolve.
    console Logs
    Child component Is Initialized
    Child Docheck
    Child ngafterviewinit
    Child Afterviewchecked
    Parent ngafterviewinit
    // value changed by view child
    LifecyclehookComponent {vardatapasstoview: "datachangedfromparent", tochkchangeshook: ""}
    vardatapasstoview: "datachangedfromparent"
    tochkchangeshook: ""
    Parent AfterViewChecked
    // here why child component's Onchanges() is not trggering we changed a value from parent right.
    // here only that error i am getting.
    lifecyclehookparent.component.ts:26 Parent Docheck
    lifecyclehook.component.ts:22 Child Docheck
    lifecyclehook.component.ts:30 child Afterviewchecked
    lifecyclehookparent.component.ts:48 Parent AfterViewChecked.
    Thank you once again bro

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

    Y onchange is not getting triggered.as you said in the previouse video wheneever we are changing the component onchange gets trigger,right?

  • @PriyaM-yo5by
    @PriyaM-yo5by Год назад

    Bro, I have a question. how you import a component inside a component?.. In this video, you imported fieldComponent inside userForm component. How is it possible?
    .

  • @santhiyas635
    @santhiyas635 4 года назад +1

    Hi anna . Can you please how to practice angular js daily routine for the beginners give me some ideas.

    • @CodeNanban
      @CodeNanban  4 года назад +1

      Study javascript very well along with Angular. That will help you a lot.
      Try to implement whatever you learn about angular in office/personal project. Hands and more coding experience makes you an expert.

    • @santhiyas635
      @santhiyas635 4 года назад

      @@CodeNanban i will follow for your comments anna

    • @santhiyas635
      @santhiyas635 4 года назад

      Anna ungaloda job description enna anna unga office la

    • @santhiyas635
      @santhiyas635 4 года назад

      Ethu anna best tutorial for learning JavaScript. I think fisrt ungaloda JavaScript video and tutorials name sollringa anna. I will study

  • @helloworld1059
    @helloworld1059 5 лет назад +1

    Bro behavior subject and subject ku diffrence soluga

    • @CodeNanban
      @CodeNanban  5 лет назад +1

      I will upload video in angular series for this.. But in short, behavioural subject has initial value where as normal subject does not..

    • @helloworld1059
      @helloworld1059 5 лет назад

      @@CodeNanban sure bro waiting thank you 😍

  • @shanmugapriya8562
    @shanmugapriya8562 4 года назад

    Can you please explain the difference between ngOnChanges and ndDoCheck.

    • @enakkuennapaa1301
      @enakkuennapaa1301 4 года назад +2

      // different b/w Onchange and Docheck Is
      // 1. onchage will invoke immediatly and will give object(prev val, current val and firsttime changed), it will run first in lifecyclehook
      // - it will trigger only if chages occur .
      // 2. docheck will invoke immediatly and it will check parent first and then child when chages is occured in component
      // - docheck will trigger parents parents first and then parent then child if docheck() hook is present in components
      // - in docheck small things we need to do . its better to avoid unless noway .
      // - while loading first time it will execute from parent to children , after that any change occur to component it will act like above.

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

    bro lifehooks child component la matum dhn work aaguma?

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

    Bro ithu entha angular version bro

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

    input la not working ngModel

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

    soure code link la podunga bro

  • @rajeenthiranthangenthiran6179
    @rajeenthiranthangenthiran6179 5 лет назад +1

    Bro angular login function poda mudiyuma

    • @CodeNanban
      @CodeNanban  5 лет назад

      Sure, I can try.. But I feel its important to know basics, later you can create login or any other function on your own

    • @rajeenthiranthangenthiran6179
      @rajeenthiranthangenthiran6179 5 лет назад +1

      @@CodeNanban thanks bro

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

    i cannot understand

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj 4 года назад

    Good explanation