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.
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
It is throwing error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'.
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.
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.
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.
I have 10 years of experience in UI development. It is an Awesome tutorial for all thanks
Thanks for uploading the series. I have started to learn angular from the beginning. I hope your series will benifit me.
welcome back 🙏 ❤
Sir please complete the node js course
Awesome tutorial 🔥🔥🔥
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.
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.
Is this complete course for angular?
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.
10:11 for click to view product starts
i am completed the given tasks
where is the solution video ?
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
Thank you❤
It is throwing error:
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'.
When will do typescript video
15:00 > ok, so you use the component's class name, not the selector, right? Cause the selector is usually different by default.
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.
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.
I share the same opinion as you, and I took the same approach.
Do you have any other possible use cases where ViewChild can be essential?
I think that the ViewChild will be used when you want to have communication between non related components
hi sir, can you please share a project file upto this lecture, to continue the flow with you
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.
like your, i need to refresh my browser to works again.
I found that after close modal the second times any change does not detect.
Here even after implementing ngoninit life cycle hook I am getting error like can't read properties of undefined. What can be done
I had the same error :/
in the tsconfig file make "strict": false,
❤
static by default set to false not true.
Yes
code for size :
{{size}}
please sir upload the video contineuosly
code for color :
code for price :
Price Each Pair:
$
{{product.price}}
$
{{product.discountPrice}} (Inclusive of all taxes)
I am not getting the desired result.
Thank you ❤❤❤❤