Value of the angular pass route

1 Set Address routerLink / html page parameter values

 

2 configure a route in the routing path configuration: 'newsconpentent /: id, conponent: NewcontentConponent'

3 jump to get the value in the page:

The actual parameter is passed in the past when the route. At the time it did not jump without logic ts files. Directly jump to the corresponding html page through the routing address.

 

Published 17 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_36547601/article/details/84727004