1
私は子供とルーティングしているので、親がhttpリクエストから子ルートに取得する日付を渡す必要があります。私はデータを共有するためにサービスを使用しようとしましたが、私は1つだけの要求をしたいだけです。角度2:経路に非同期データを渡すか?
それは私のルートです:
const routes: Routes = [
{
path: 'page/:category',
component: PageComponent,
children: [
{
path: ''
},
{
path: '/:id',
component: PageDetailComponent
}
]
}
];
私の2番目の質問は、ルートだった
http://example.com/route/param
https://angular.io/docs/ts/latest/guide/router.html#!#guards –
@GünterZöchbauerからの解決を使用してください、多くの感謝、完璧に動作します! – Jarek