Для этого вы можете использовать ngx-bootstrap .
module.ts
import { CollapseModule, BsDropdownModule, AccordionModule, TabsModule, BsDatepickerModule } from 'ngx-bootstrap';
@NgModule({
imports: [
CommonModule,
...
TabsModule.forRoot(),
AccordionModule.forRoot(),
CollapseModule.forRoot(),
BsDropdownModule.forRoot()
]
})
file.html
<div class="tabs-resp-custom">
<ul class="nav nav-tabs">
<li class="nav-item" >
<a class="nav-link" [routerLink]="['tab1']" routerLinkActive="active">Tab 1</a>
</li>
<li class="nav-item">
<a class="nav-link" [routerLink]="['tab2']" routerLinkActive="active">Tab 2</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active">
<router-outlet></router-outlet>
</div>
</div>