forked from fetrarij/ngx-daterangepicker-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.routing.ts
43 lines (42 loc) · 1.14 KB
/
app.routing.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Routes } from '@angular/router';
import { CustomRangesComponent } from './custom-ranges/custom-ranges.component';
import { FullComponent } from './full/full.component';
import { ReactiveFormComponent } from './reactive-form/reactive-form.component';
import { SimpleComponent } from './simple/simple.component';
import { SingleDatepickerComponent } from './single-datepicker/single-datepicker.component';
import { TimepickerComponent } from './timepicker/timepicker.component';
export const appRoutes: Routes = [
{
path: '',
redirectTo: 'simple',
pathMatch: 'full',
},
{
path: 'simple',
component: SimpleComponent,
},
{
path: 'single-datepicker',
component: SingleDatepickerComponent,
},
{
path: 'with-timepicker',
component: TimepickerComponent,
},
{
path: 'full',
component: FullComponent,
},
{
path: 'custom-ranges',
component: CustomRangesComponent,
},
{
path: 'reactive-forms',
component: ReactiveFormComponent,
},
{
path: '**',
redirectTo: 'simple',
},
];