Angular 13 Tutorial - 9 - Passing data between components using Services

preview_player
Показать описание
We are talking aboout passing data from one component to another using services and also discus the concept of dependency injection.

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

Let's go man! your tutorial worked like a charm, I was trying to pass data to a child component used by router-outlet, and Input doesn't work in that case, so I found about the services and tried to learn with the angular documentation tutorial but Im more of a video learner so I found your video and it's perfect!

cris
Автор

I have two different components, I can clearly understand your instructions but its not working for me, im passing data from second component to first component, first component is main page, second component is an window ( like new window page ) not like an main page, when i try to pass data from second component ( new window ) to first component ( main page ) value not get transferred or not updated in the UI, this is what i done, help me to find out what is the issue what i need to do ??

Edit : from second component data is passing by button click, but not working

MadhavanSPR