私のplunkrに問題があります。 http://plnkr.co/edit/70ZFRPJdAraDDV8heMlo?p=previewどの角度にも一致しません2.0.1
const routes = [
{path: 'test', component: Test},
{path: 'home', component: HomeComponent},
{path: '', redirectTo: 'home', pathMatch: "full"}
];
this.router.navigate('/test');
私は単にrouter.navigateを行うことはできません。私にエラーがあります:
Error: Cannot match any routes. URL Segment: 't/e/s/t'
すべてが私には大丈夫です。 Cannot match any routes: ''に関連していますが、子供路線はありません。
おかげ
ありがとうございました。 – Meakyl