に私は角度4アプリケーションに取り組んでいますし、私はこれが私ですルータのコンセントの負荷login.page.ts外負荷は、ページのルータ、アウトレット外の角度4
をしたいですhome.component.htmlファイル
<div class="container">
<top-nav-bar></top-nav-bar>
<lett-nav-bar></lett-nav-bar>
<router-outlet></router-outlet>
</div>
ルートのコンフィグ
const MAINMENU_ROUTES: Routes = [
{ path: 'login', component: LoginComponent },
{ path: '', redirectTo: 'home', pathMatch: 'full'},
{ path: 'home', component: HomeComponent, canActivate: [AuthGuard]}
];
これで、ルータのログインページを読み込むことができますが、ルータの出口に来る前にログインページをフルスクリーンで読み込みたいのですが。
トップナビゲーションバーと左側ナビゲーションバーと同じように使用しないでください。 – TheUnreal