を「componentlessルートが設定という名前のコンセントを持つことができない」、私は次のルートがありますは私のNG2アプリで
const modalRoutes: Routes = [{
path: 'modal_1',
component: SomeModalComponent,
outlet: 'modal',
children: [
{
path: 'step_one',
component: OneSubmodalComponent,
outlet: 'submodal'
},
{
path: 'step_two',
component: AnotherSubmodalComponent,
outlet: 'submodal'
},
{
path: '',
redirectTo: 'step_one',
outlet: 'submodal',
pathMatch: 'full'
}
]
}];
を私はメインページのコンテンツの非命名ルータのコンセントを持っており、このルートは説明します名前付きアウトレットmodal
にルーティングされ、それ自身が名前付きアウトレットsubmodal
を含む1つのモーダルのルーティング。
角度2.2.4では、これはうまくいきましたが、2.3.0+に更新するとエラーInvalid configuration of route 'modal_1/': a componentless route cannot have a named outlet set
が表示されます。リダイレクトルートにはコンポーネントが定義されていないため、がになると、これが定義されているstep_one
にリダイレクトされるだけなので、これがわかります。私のルーティングの設計についてここに何かありますか?
はかかわらず、遅延ロード、これらのコンポーネントはありますか? – nullsteph