Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2972f03

Browse files
author
Vasil Chimev
authored
Revert "refactor: loadChildren to work with ~/path and ./path both relative to app/" (#349)
* Revert "fix(update-ns-webpack): make it possible to call as executable (#347)" This reverts commit 9fa7656. * Revert "refactor: remove building through npm scripts (#336)" This reverts commit 6e63e3c. * Revert "chore: add update-ns-webpack to scripts (#346)" This reverts commit 8bd887b. * Revert "refactor: loadChildren to work with ~/path and ./path both relative to app/ (#338)" This reverts commit 49ef411.
1 parent d5ec75c commit 2972f03

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: demo/AngularApp/app/ninjas/ninjas.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { Component } from "@angular/core";
66
<Label text="Ninjas!" class="h1 text-center"></Label>
77
88
<ListView [items]="ninjas" class="list-group">
9-
<ng-template let-ninja="item" let-index="index">
9+
<ng-template let-ninja="item">
1010
<Label
1111
class="list-group-item"
1212
color="white"
1313
[backgroundColor]="ninja.color"
1414
[text]="ninja.name"
15-
[nsRouterLink]="['details' + (index % 2 + 1) , ninja.name]"></Label>
15+
[nsRouterLink]="['details', ninja.name]"></Label>
1616
</ng-template>
1717
</ListView>
1818

Diff for: demo/AngularApp/app/ninjas/ninjas.routes.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ export const routes = [
66
component: NinjasComponent
77
},
88
{
9-
path: "details1",
10-
loadChildren: "./ninjas/details/ninja.module#NinjaModule",
11-
},
12-
{
13-
path: "details2",
9+
path: "details",
1410
loadChildren: "~/ninjas/details/ninja.module#NinjaModule",
1511
},
1612
];

0 commit comments

Comments
 (0)