Skip to content

Commit 13aa4b2

Browse files
author
pipeline
committed
sample(EJ2-5221): Default Routing in Angular
1 parent d7dd42e commit 13aa4b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/sb.router.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const appRoutes: any = [
3232
{ path: 'lineargauge', loadChildren: LinearGaugeSampleModule },
3333
{ path: 'grid', loadChildren: GridSampleModule },
3434
{ path: 'form-validator', loadChildren: FormValidatorModule },
35-
{ path: 'Button', loadChildren: ButtonModule },
35+
{ path: 'button', loadChildren: ButtonModule },
3636
{ path: 'dropdownlist', loadChildren: DropDownListSampleModule },
3737
{ path: 'combobox', loadChildren: ComboBoxSampleModule },
3838
{ path: 'autocomplete', loadChildren: AutoCompleteSampleModule },
@@ -51,6 +51,8 @@ const appRoutes: any = [
5151
{ path: 'maskedtextbox', loadChildren: MaskedTextBoxSampleModule },
5252
{ path: 'multiselect', loadChildren: MultiSelectSampleModule },
5353
{ path: 'contextmenu', loadChildren: MenuModule },
54+
{ path: ':theme/button/:sample', redirectTo: 'material/button/default'},
55+
{ path: ':theme/contextmenu/:sample', redirectTo: 'material/contextmenu/default' },
5456
{ path: ':theme/tab/:sample', redirectTo: 'material/tab/default' },
5557
{ path: '', redirectTo: 'material/chart/line', pathMatch: 'full' },
5658
{ path: '**', redirectTo: 'material/chart/line' }

0 commit comments

Comments
 (0)