0
DetailsComponentをLocationComponentの子にした後で、エラーが発生する:「例外:キャッチされていない」:エラー:ルートに一致しないURLセグメント: 'dashboard'私のアプリ。何が原因なのですか?例外:キャッチされていない(約束しています):エラー:いずれのルートにも一致しません。 URLセグメント: 'ダッシュボード'
//login.html
<button class="button" routerLink="/dashboard"><span>Login </span></button>
//ルート
export const DashboardRoutes: Routes =[
{
path: 'dashboard',
component: DashboardComponent,
children: [
{path: '', redirectTo: 'location'},
{path: 'game', component: GameComponent},
{path: 'location', component: LocationComponent, children: [
{path : '/details', component: DetailsComponent},
]
},
'{パス: '詳細'、コンポーネント:DetailsComponent}、' – anshuVersatile