#31 ViewChild() in Angular | Angular Component & Directives | A Complete Angular Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 43

  • @jvilas10asd1
    @jvilas10asd1 10 หลายเดือนก่อน +1

    I have 10 years of experience in UI development. It is an Awesome tutorial for all thanks

  • @akshaychavan3597
    @akshaychavan3597 ปีที่แล้ว +8

    Thanks for uploading the series. I have started to learn angular from the beginning. I hope your series will benifit me.

  • @abdllahzayed6790
    @abdllahzayed6790 ปีที่แล้ว +1

    welcome back 🙏 ❤

  • @rajnishKumar-mz8fv
    @rajnishKumar-mz8fv ปีที่แล้ว +2

    Sir please complete the node js course

  • @sona4612
    @sona4612 ปีที่แล้ว

    Awesome tutorial 🔥🔥🔥

  • @SirFrancisFoley
    @SirFrancisFoley ปีที่แล้ว +1

    One of things that is cracking me up is get the shoes to span across the page, my shoes are listed one under another, I have tried in lot of different places but I cannot find the right spot to include it. Any help will be gratefully accepted.

    • @Clairvoyancerion
      @Clairvoyancerion 6 หลายเดือนก่อน

      I used bootstrap and created a div with class="container flex-wrap". In this case, each product will wrap around and create a grid layout.

  • @ItCoursesForAll
    @ItCoursesForAll 27 วันที่ผ่านมา

    Is this complete course for angular?

  • @mahmoudfawzy9901
    @mahmoudfawzy9901 6 วันที่ผ่านมา

    Just one thing you were wrong about is that "static" property is by default "false" not true. Other than that you did a good job.

  • @benkthomasniravathu8136
    @benkthomasniravathu8136 ปีที่แล้ว +2

    10:11 for click to view product starts

  • @shakeelilyas7952
    @shakeelilyas7952 6 หลายเดือนก่อน

    i am completed the given tasks

  • @tareksobhey2856
    @tareksobhey2856 4 หลายเดือนก่อน +1

    where is the solution video ?

  • @ayushisingh6638
    @ayushisingh6638 3 หลายเดือนก่อน

    how do we know when to use ViewChild to pass data from child to parent and when to use the old way using @output ? and when to use template refernece or ViewChild

  • @jamaal00013
    @jamaal00013 ปีที่แล้ว

    Thank you❤

  • @karvan101
    @karvan101 8 หลายเดือนก่อน

    It is throwing error:
    ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'.

  • @Mageshwaran_M
    @Mageshwaran_M ปีที่แล้ว

    When will do typescript video

  • @RodRavenpictures
    @RodRavenpictures ปีที่แล้ว

    15:00 > ok, so you use the component's class name, not the selector, right? Cause the selector is usually different by default.

    • @RodRavenpictures
      @RodRavenpictures ปีที่แล้ว

      Is it correct to say that this @ViewChild() is an alternative to @Output(), cause I think you can achieve the same using just a reference variable for product-list and an @Input() in the product-details. I do understando it seems more invasive than input and output, cause with viewChild you could easily overwrite any variable in the child.

  • @Soty1989
    @Soty1989 ปีที่แล้ว +4

    A very good course so far. Unfortunately, this is the first chapter where the use case is not really clear. The problems can be solved much easier with pure data binding and ViewChild seems slightly exaggerated here.
    I would have liked to see more detail on when to use ViewChild versus data binding and when not. Otherwise it was very understandable.

    • @fadiazzam_
      @fadiazzam_ 10 หลายเดือนก่อน +1

      I share the same opinion as you, and I took the same approach.

    • @Clairvoyancerion
      @Clairvoyancerion 6 หลายเดือนก่อน

      Do you have any other possible use cases where ViewChild can be essential?

    • @karthikshellikeri6189
      @karthikshellikeri6189 4 หลายเดือนก่อน

      I think that the ViewChild will be used when you want to have communication between non related components

  • @Manojkumar-vl6hi
    @Manojkumar-vl6hi 5 หลายเดือนก่อน

    hi sir, can you please share a project file upto this lecture, to continue the flow with you

  • @SalmanShafiq-y3q
    @SalmanShafiq-y3q 7 หลายเดือนก่อน

    I think there is a bug here. It works as like template reference variable.
    Because when click close button of modal i make undefined the selectedProduct property. the modal close imediately because the whole product detail div and overaly div has condition to show only selectedProduct with value.this works fine when use template variable but in @ViewChild() first time click on product it shows the modal and after closing the modal when click on product again it does not show modal.

    • @SalmanShafiq-y3q
      @SalmanShafiq-y3q 7 หลายเดือนก่อน

      like your, i need to refresh my browser to works again.

    • @SalmanShafiq-y3q
      @SalmanShafiq-y3q 7 หลายเดือนก่อน

      I found that after close modal the second times any change does not detect.

  • @sangireddysukanya6812
    @sangireddysukanya6812 6 หลายเดือนก่อน

    Here even after implementing ngoninit life cycle hook I am getting error like can't read properties of undefined. What can be done

    • @lobnakhalsi9558
      @lobnakhalsi9558 6 หลายเดือนก่อน

      I had the same error :/

    • @suleymanyalman8077
      @suleymanyalman8077 2 หลายเดือนก่อน

      in the tsconfig file make "strict": false,

  • @AjayCoding
    @AjayCoding ปีที่แล้ว

  • @arammah
    @arammah 9 หลายเดือนก่อน +2

    static by default set to false not true.

  • @chakirfri
    @chakirfri ปีที่แล้ว

    code for size :
    {{size}}

  • @rajanrao5170
    @rajanrao5170 ปีที่แล้ว

    please sir upload the video contineuosly

  • @chakirfri
    @chakirfri ปีที่แล้ว

    code for color :

    • @NISARGMEWADA
      @NISARGMEWADA 7 หลายเดือนก่อน

      code for price :

      Price Each Pair:
      $
      {{product.price}}

      $
      {{product.discountPrice}} (Inclusive of all taxes)

      I am not getting the desired result.

  • @divyap.p1991
    @divyap.p1991 7 หลายเดือนก่อน

    Thank you ❤❤❤❤