-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
carousel.routes.ts
56 lines (54 loc) · 1.82 KB
/
carousel.routes.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
44
45
46
47
48
49
50
51
52
53
54
55
56
/* eslint-disable @typescript-eslint/no-var-requires */
import { ComponentWrapper } from '../../shared/component-wrapper/component-wrapper.component';
import { NgbdApiPage } from '../../shared/api-page/api-page.component';
import { DemoListComponent } from '../../shared/examples-page/demo-list.component';
import { NgbdCarouselBasic } from './demos/basic/carousel-basic';
import { NgbdCarouselConfig } from './demos/config/carousel-config';
import { NgbdCarouselNavigation } from './demos/navigation/carousel-navigation';
import { NgbdCarouselPause } from './demos/pause/carousel-pause';
import { Routes } from '@angular/router';
const DEMOS = [
{
fragment: 'basic',
title: 'Carousel',
type: NgbdCarouselBasic,
code: 'carousel/demos/basic/carousel-basic.ts',
markup: 'carousel/demos/basic/carousel-basic.html',
},
{
fragment: 'navigation',
title: 'Navigation arrows and indicators',
type: NgbdCarouselNavigation,
code: 'carousel/demos/navigation/carousel-navigation.ts',
markup: 'carousel/demos/navigation/carousel-navigation.html',
},
{
fragment: 'pause',
title: 'Pause/cycle',
type: NgbdCarouselPause,
code: 'carousel/demos/pause/carousel-pause.ts',
markup: 'carousel/demos/pause/carousel-pause.html',
},
{
fragment: 'config',
title: 'Global configuration of carousels',
type: NgbdCarouselConfig,
code: 'carousel/demos/config/carousel-config.ts',
markup: 'carousel/demos/config/carousel-config.html',
},
];
export const ROUTES: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'examples' },
{
path: '',
component: ComponentWrapper,
data: {
name: 'Carousel',
bootstrap: 'https://getbootstrap.com/docs/%version%/components/carousel/',
},
children: [
{ path: 'examples', component: DemoListComponent, data: { demos: DEMOS } },
{ path: 'api', component: NgbdApiPage },
],
},
];