Route fix

This commit is contained in:
Yiğit FINDIKLI 2021-12-23 16:31:31 +03:00
parent f2fd78cdda
commit 5ca76d76bc
3 changed files with 6 additions and 5 deletions

View File

@ -48,7 +48,8 @@ import {PaymentDemoComponent} from './demo/view/menu/paymentdemo.component';
{path: 'uikit/media', component: MediaDemoComponent},
{path: 'uikit/menu', component: MenusDemoComponent,
children: [
{path:'', component: PersonalDemoComponent},
{path:'', redirectTo: 'personal', pathMatch: 'full'},
{path: 'personal', component: PersonalDemoComponent},
{path:'seat', component: SeatDemoComponent},
{path:'payment', component: PaymentDemoComponent},
{path:'confirmation', component: ConfirmationDemoComponent},

View File

@ -31,7 +31,7 @@
<div class="col-12 md:col-6">
<div class="card card-w-title">
<h5>TabMenu</h5>
<p-tabMenu [model]="routeItems" [activeItem]="routeItems[0]"></p-tabMenu>
<p-tabMenu [model]="routeItems"></p-tabMenu>
<router-outlet></router-outlet>
</div>
</div>

View File

@ -285,7 +285,7 @@ export class MenusDemoComponent implements OnInit {
this.breadcrumbItems.push({ label: 'Item' });
this.routeItems = [
{label: 'Personal', routerLink:''},
{label: 'Personal', routerLink:'personal'},
{label: 'Seat', routerLink:'seat'},
{label: 'Payment', routerLink:'payment'},
{label: 'Confirmation', routerLink:'confirmation'},