, / , , router-outlet . - :
const appRoutes: Routes = [
{
path: '',
children: [
{ path: '', component: HomeComponent },
{ path: 'temp', component: TempComponent },
{ path: 'temp2', component: TempComponent2 },
]
component: HomeComponent
},
{ path: 'logout', component: LogoutComponent },
{ path: '**', redirectTo: '' }
];
app.component.html - <router-outlet></router-outlet>
home.component .
, / , .
, , / , , , / , . a standard-page.component.
<app-header></app-header>
<ng-content></ng-content>
<app-footer></app-footer>
Home, Temp, Temp2 (not Logout) "" , / .
. TempComponent html.
<standard-page>
//TempComponent content here ..
</standard-page>