Removing header and footer when displaying logout page
问题 I have added below code in my app.component.html <app-header ></app-header> <router-outlet></router-outlet> <app-footer ></app-footer> and in my routing file I am using below code import { Routes, RouterModule } from '@angular/router'; const appRoutes: Routes = [ { path: '', component: Home }, { path: 'temp', component: TempComponent }, { path: 'temp2', component: TempComponent2 }, { path: 'logout', component: LogoutComponent }, { path: '**', redirectTo: '' } ]; export const routing =