How to pass parameters with angular router

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
< / app-table-data >
< / app-table-data-2 >

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

Nov.30,2021
Search for params in

ide/router" rel=" nofollow noreferrer > https://angular.io/guide/router pages. I'm sure you'll find the information you want

Menu