/
app.routing.ts
45 lines (41 loc) · 1.87 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
44
45
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { AnimationsListComponent } from "./animations-list.component";
import { AnimationBuilderComponent } from "./animation-builder.component";
import { ExternalAnimationComponent } from "./external-animation.component";
import { FadeInOutComponent } from "./fade-in-out.component";
import { OptionsComponent } from "./options.component";
import { OptionsDefaultComponent } from "./options-default.component";
import { AnimateChildComponent } from "./animate-child.component";
import { SelectorAllComponent } from "./selector-all.component";
import { QueryStaggerComponent } from "./query-stagger.component";
const routes: Routes = [
{ path: "", pathMatch: "full", redirectTo: "list" },
{ path: "list", component: AnimationsListComponent },
{ path: "builder", component: AnimationBuilderComponent },
{ path: "external", component: ExternalAnimationComponent },
{ path: "fade-in-out", component: FadeInOutComponent },
{ path: "options", component: OptionsComponent },
{ path: "options-default", component: OptionsDefaultComponent },
{ path: "animate-child", component: AnimateChildComponent },
{ path: "selector", component: SelectorAllComponent },
{ path: "query-stagger", component: QueryStaggerComponent },
{ path: "hero", loadChildren: "./hero/hero.module#HeroModule" },
];
@NgModule({
imports: [NativeScriptRouterModule.forRoot(routes)],
exports: [NativeScriptRouterModule],
})
export class AppRoutingModule { }
export const routedComponents = [
AnimationsListComponent,
AnimationBuilderComponent,
ExternalAnimationComponent,
FadeInOutComponent,
OptionsComponent,
OptionsDefaultComponent,
AnimateChildComponent,
SelectorAllComponent,
QueryStaggerComponent,
];