Skip to content

Commit 908e184

Browse files
committed
Removed nextKatacodaStep
1 parent 71eb92f commit 908e184

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

devon4ng-lazy-loading/index.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ restoreDevonfwIde(["npm", "ng", "vscode"])
2525

2626
[step]
2727
--
28-
nextKatacodaStep("Introduction", [{ "file": "files/intro.txt" }, { "image": "images/levels-app.png" }])
28+
displayContent("Introduction", [{ "file": "files/intro.txt" }, { "image": "images/levels-app.png" }])
2929
--
3030

3131
Before creating a devon4ng application, you first have to install the devonfw ide. You will find more information about devonfw on https://devonfw.com/website/pages/welcome/welcome.html.
@@ -79,7 +79,7 @@ runClientNg("level-app", { "startupTime": 200, "port": 4200, "path": "" })
7979

8080
[step]
8181
--
82-
nextKatacodaStep("Eager loading", [{ "file": "files/eager-loading.txt" }, { "image": "images/compile-eager.png" }, { "image": "images/second-lvl-right-eager.png" }])
82+
displayContent("Eager loading", [{ "file": "files/eager-loading.txt" }, { "image": "images/compile-eager.png" }, { "image": "images/second-lvl-right-eager.png" }])
8383
--
8484

8585
Modifying an angular application to load its modules lazily is easy, you have to change the routing configuration of the desired module (for example `FirstModule`). Instead of loading a component, you dynamically import it in a `loadChildren` attribute because modules acts as gates to access components "inside" them. Updating this app to load lazily has four consecuences: no component attribute, no import of `FirstComponent`, `FirstModule` import has to be removed from the imports array at `app.module.ts`, and change of context.
@@ -95,7 +95,7 @@ changeFile("level-app/src/app/first/first-routing.module.ts", { "file": "files/f
9595

9696
[step]
9797
--
98-
nextKatacodaStep("Lazy loading First module", [{ "file": "files/lazy-loading.txt" }, { "image": "images/compile-first-lazy.png" }, { "image": "images/first-lvl-lazy.png" }])
98+
displayContent("Lazy loading First module", [{ "file": "files/lazy-loading.txt" }, { "image": "images/compile-first-lazy.png" }, { "image": "images/first-lvl-lazy.png" }])
9999
--
100100

101101
Now, lets make the SecondLeftModule load lazily. For this, you need to change `component` to `loadChildren` and refer `SecondLeftModule` in the file `first-routing.module.ts`. Next, you need to remove `SecondLeftModule` from the `imports` array of `first.module.ts`. After that you need to route the `ContentComponent` within the `second-left-routing.module.ts`.
@@ -109,7 +109,7 @@ changeFile("level-app/src/app/first/second-left/second-left-routing.module.ts",
109109

110110
[step]
111111
--
112-
nextKatacodaStep("Lazy loading SecondLeftModule", [{ "file": "files/lazy-loading2.txt" }, { "image": "images/second-lvl-lazy.png" }, { "image": "images/second-lvl-left-lazy.png" }])
112+
displayContent("Lazy loading SecondLeftModule", [{ "file": "files/lazy-loading2.txt" }, { "image": "images/second-lvl-lazy.png" }, { "image": "images/second-lvl-left-lazy.png" }])
113113
--
114114

115115
====

0 commit comments

Comments
 (0)