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

  Рет қаралды 34,808

procademy

procademy

Күн бұрын

Пікірлер: 43
@jvilas10asd1
@jvilas10asd1 10 ай бұрын
I have 10 years of experience in UI development. It is an Awesome tutorial for all thanks
@akshaychavan3597
@akshaychavan3597 Жыл бұрын
Thanks for uploading the series. I have started to learn angular from the beginning. I hope your series will benifit me.
@benkthomasniravathu8136
@benkthomasniravathu8136 Жыл бұрын
10:11 for click to view product starts
@abdllahzayed6790
@abdllahzayed6790 Жыл бұрын
welcome back 🙏 ❤
@rajnishKumar-mz8fv
@rajnishKumar-mz8fv Жыл бұрын
Sir please complete the node js course
@sona4612
@sona4612 Жыл бұрын
Awesome tutorial 🔥🔥🔥
@jamaal00013
@jamaal00013 Жыл бұрын
Thank you❤
@shakeelilyas7952
@shakeelilyas7952 6 ай бұрын
i am completed the given tasks
@SirFrancisFoley
@SirFrancisFoley Жыл бұрын
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 7 ай бұрын
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.
@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.
@tareksobhey2856
@tareksobhey2856 5 ай бұрын
where is the solution video ?
@ayushisingh6638
@ayushisingh6638 4 ай бұрын
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
@ItCoursesForAll
@ItCoursesForAll Ай бұрын
Is this complete course for angular?
@AjayCoding
@AjayCoding Жыл бұрын
@Mageshwaran_M
@Mageshwaran_M Жыл бұрын
When will do typescript video
@Soty1989
@Soty1989 Жыл бұрын
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_ 11 ай бұрын
I share the same opinion as you, and I took the same approach.
@Clairvoyancerion
@Clairvoyancerion 7 ай бұрын
Do you have any other possible use cases where ViewChild can be essential?
@karthikshellikeri6189
@karthikshellikeri6189 5 ай бұрын
I think that the ViewChild will be used when you want to have communication between non related components
@mahmoudfawzy9901
@mahmoudfawzy9901 Ай бұрын
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.
@karvan101
@karvan101 9 ай бұрын
It is throwing error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'.
@chakirfri
@chakirfri Жыл бұрын
code for size : {{size}}
@sangireddysukanya6812
@sangireddysukanya6812 7 ай бұрын
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 7 ай бұрын
I had the same error :/
@suleymanyalman8077
@suleymanyalman8077 3 ай бұрын
in the tsconfig file make "strict": false,
@SalmanShafiq-y3q
@SalmanShafiq-y3q 8 ай бұрын
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 8 ай бұрын
like your, i need to refresh my browser to works again.
@SalmanShafiq-y3q
@SalmanShafiq-y3q 8 ай бұрын
I found that after close modal the second times any change does not detect.
@Manojkumar-vl6hi
@Manojkumar-vl6hi 6 ай бұрын
hi sir, can you please share a project file upto this lecture, to continue the flow with you
@rajanrao5170
@rajanrao5170 Жыл бұрын
please sir upload the video contineuosly
@arammah
@arammah 10 ай бұрын
static by default set to false not true.
@artsentertainment8875
@artsentertainment8875 9 ай бұрын
Yes
@chakirfri
@chakirfri Жыл бұрын
code for color :
@NISARGMEWADA
@NISARGMEWADA 8 ай бұрын
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 8 ай бұрын
Thank you ❤❤❤❤
Error handling in TypeScript. How to avoid exceptions.
6:11
Beyond TypeScript
Рет қаралды 2,4 М.
Angular Crash Course | Learn modern Angular in 90 minutes
1:29:09
Code with Ahsan
Рет қаралды 26 М.
@ViewChild in Angular | Data Binding | Angular 12+
19:41
procademy
Рет қаралды 48 М.
Angular 18 is EXACTLY what we needed
9:15
Academind
Рет қаралды 91 М.