I want to pass data on button click of parent component to child component and render child component as a separate page in angular 5 instead of rendering child component in parent's template.
Suppose, My child component is 'AstronautComponent' and when I add ,
<app-astronaut *ngFor="let astronaut of astronauts"
[astronaut]="astronaut">
</app-astronaut >
this in parent template it is showing child template on same page instead of separate page.Actually I am able to get data from parent to child but on same parent template.I am using @Input annotation with service(as Observable).
Kindly Help.
Thanks