Angular Services Explained - Sharing Data Between Components

preview_player
Показать описание
In this video you will learn about sharing data between components using service in Angular. We can of course just write our API call inside component but then we can't really reuse this code because it's coupled with a component. Services in Angular help us to share data between different components in an easy and dry way.

🚨IMPORTANT:

🕛 TIMESTAMPS:
0:00 Introduction
2:47 Creating Angular service
18:08 Sharing Data Between Components Using Service
18:29 Call to action

📚 References:
Рекомендации по теме
Комментарии
Автор

You are only person who makes Angular understandable for me. Thanks a lot.

balls
Автор

I managed to get everything working this time and I spotted what I had done wrong in the previous one.

I your full angular course do you effectively build a MEAN stack (or any other DB) or is it kept solely to the front end? Thanks

justcoder
Автор

I am working on an angular project where, I have defined a function to call an get api in component 1 and I want to call this function in component 2 using a service . Can you suggest me how to do it??

kishkinjoshi