Angular's @ Input @ Output problem

@ Input @ Output must be bound in the template

like this < / app-test >

so if I use router to control the page today, only < router-outlet > < / router-outlet >

there is no < / app-test > this template

what should I do at this time?

Dec.24,2021

@ Input () @ Output requires parent and child components
but you are using route redirection, which uses jump

Menu