0.0.18 • Published 3 years ago

@cativo/router-tab v0.0.18

Weekly downloads
5
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1-0.1

5 years ago

0.0.10

5 years ago

0.0.10-0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.4

5 years ago