0.0.18 • Published 2 years ago

@cativo/router-tab v0.0.18

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years ago

RouterTab

Router-Tab Directive

Install

npm install @cativo/router-tab --save

Import RouterTabModule

@NgModule({
  declarations: [
    AppComponent, PageAComponent, PageBComponent, PageCComponent
  ],
  imports: [
    RouterTabModule, // this module

    RouterModule.forRoot([
      {path: '', pathMatch: 'full', redirectTo: 'a'},
      {path: 'a', component: PageAComponent},
      {path: 'b', component: PageBComponent},
      {path: 'c', component: PageCComponent}
    ]),
    BrowserModule,
    BrowserAnimationsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}

use routerTabs On MatTabGroup

<mat-tab-group routerTabs>
  <mat-tab label="Page A" routerLink="a"></mat-tab>
  <mat-tab label="Page B" routerLink="b"></mat-tab>
  <mat-tab label="Page C" routerLink="c"></mat-tab>
</mat-tab-group>
<router-outlet></router-outlet>
0.0.18

2 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.1-0.1

4 years ago

0.0.10

4 years ago

0.0.10-0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.4

4 years ago