angular2 - Pass value from parent route to child route

前端 未结 2 1411
無奈伤痛
無奈伤痛 2021-01-13 01:04

I have a route called home and it has three child routes, documents, mail and trash. In the home route component it has a variable called \'user\'. I know there are a few wa

2条回答
  •  囚心锁ツ
    2021-01-13 01:31

    Check out :- https://angular.io/docs/ts/latest/guide/router.html#!#link-parameters-array

    You can pass data while changing routes on click as :-

    Crisis Center
    

提交回复
热议问题