#28 Non-Related Component Communication | Angular Component & Directives | A Complete Angular Course
ฝัง
- เผยแพร่เมื่อ 7 พ.ย. 2024
- In this lecture you will learn how to communicate between two non-related components using custom property binding & custom event binding.
ASP.NET Core GitHub Repo: github.com/man...
NODE JS Course GitHub Repo: github.com/man...
ANGULAR 16 Course GitHub Repo: github.com/man...
Best Playlist ever
Thank you sir, can you plz show us this concept with using service, i think it more logic, but your videos are amazing
Thanks for this, I was looking for for something similar for my Angular app as well.
Thanks a lot. Are there any pro/cons using this approach as compared to the service calls ?
clear explanation.
05:10 custom event binding process start with child component
05:27 creating custom event
06:50 raised the custom event
09:33 start working with parent component for custom event binding
12:22 Custom property binding and @Input() decorator process starts
very well explained
sir kindly tell me the name of your visual studio code color theme
Why we don't create a function in the component that will filter products by search text or filter like we do it in React with useEffect hook where we can pass all dependencies that change? I mean does Angular have the same?
Thank you sir!
Why not emit from the updateSearchText function? It's already called every time the input changes.
What's better? Avoid reusing code...or single responsibility principle?
smart bro!!
Thank you man!
what if the compo-1 and compo-2 have no same parent
what will do that time
I think go for service at that time
I have an existential question. The video is supposed to be about Non-Related Component Communication, but search and product-list are related to the container component, i meant container is the parent. But what happens if I want to communicate more external components? for example produc-list with the header ? Would I have to pass the data with @output to the app component and then pass it with @input to the header?
Use services. They are better and more efficient.
Sir pls increase the font size