the program structure is
appComponent is the parent element
under
tableComponent1
tableComponent2
now use routing to switch between these two pages
the code in the original appComponent.html is
then, because you want to change the route switching code to this
< router-outlet > < / router-outlet >
but I did pass the list parameter to Component
.so change the code to this < router-outlet [list] = "list" > < / router-outlet >
the result is bad. Is it impossible to pass parameters with router? What"s the solution? ask the god for help