Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 32f3ed9

Browse files
bampakoawardbell
authored andcommitted
docs(router): Fix typos (#2666)
1 parent e7bcc72 commit 32f3ed9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/docs/ts/latest/guide/router.jade

+5-5
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,7 @@ h3#preloading <i>Pre-Loading</i>: background loading of feature areas
21382138
We've learned how to load modules on-demand, but we can also take advantage of loading feature areas modules in *advance*. The *Router*
21392139
supports **pre-loading** of asynchronous feature areas prior to navigation to their respective URL. Pre-loading allows us to to load our initial route
21402140
quickly, while other feature modules are loaded in the background. Once we navigate to those areas, they will have already been loaded
2141-
as if our they were included in our initial bundle.
2141+
as if they were included in our initial bundle.
21422142

21432143
Each time a **successful** navigation happens, the *Router* will look through our configuration for lazy loaded feature areas
21442144
and react based on the provided strategy.
@@ -2151,7 +2151,7 @@ h3#preloading <i>Pre-Loading</i>: background loading of feature areas
21512151
The *Router* also supports [custom preloading strategies](#custom-preloading) to give us control of what we want to pre-load.
21522152

21532153
We'll update our *CrisisCenterModule* to be loaded lazily by default and use the `PreloadAllModules` strategy to eagerly
2154-
it them up initial navigation.
2154+
it up.
21552155

21562156
<a id="preload-canload"></a>
21572157
.l-sub-section
@@ -2191,7 +2191,7 @@ h3#preloading <i>Pre-Loading</i>: background loading of feature areas
21912191

21922192
:marked
21932193
Now when we visit `http://localhost:3000`, the `/heroes` route will load in the foreground, while the *CrisisCenterModule* and any other asynchronous feature
2194-
modules we could have are _eagerly_ loaded in the background, waiting for us to navigate to them.
2194+
modules are _eagerly_ loaded in the background, waiting for us to navigate to them.
21952195

21962196
<a id="custom-preloading"></a>
21972197
:marked
@@ -2204,9 +2204,9 @@ h3#preloading <i>Pre-Loading</i>: background loading of feature areas
22042204
We can define our own strategy the same way the **PreloadAllModules** modules strategy was provided to our *RouterModule.forRoot* configuration object.
22052205

22062206
Since we want to take advantage of this, we'll add a custom strategy that _only_ preloads the modules we select. We'll enable the preloading by using the *Route Data*,
2207-
which we learned is an object to store arbitrary route data and and [resolve data](#resolve-guard).
2207+
which, as we learned, is an object to store arbitrary route data and and [resolve data](#resolve-guard).
22082208

2209-
We'll add a custom `preload` boolean to our `crisis-center` route data that we'll use with our custom strategy. To see it in action, we'll add to
2209+
We'll add a custom `preload` boolean to our `crisis-center` route data that we'll use with our custom strategy. To see it in action, we'll add
22102210
the `route.path` to the `preloadedModules` array in our custom strategy service. We'll also log a message
22112211
to the console for the preloaded module.
22122212

0 commit comments

Comments
 (0)