I have a doubt why @input and @output properties does not work when using router outlet in angular?
Asked
Active
Viewed 708 times
2 Answers
1
The only purpose of @Input
and @Output
are to define a public interface on nested (child) components. These are then used to communicate between the child component and the parent component that hosts it.
They are not meant for communication between routed components. Other mechanisms are provided for that purpose.

DeborahK
- 57,520
- 12
- 104
- 129