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

docs(router): Fix typos #2666

Merged
merged 1 commit into from
Oct 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions public/docs/ts/latest/guide/router.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ h3#preloading <i>Pre-Loading</i>: background loading of feature areas
We've learned how to load modules on-demand, but we can also take advantage of loading feature areas modules in *advance*. The *Router*
supports **pre-loading** of asynchronous feature areas prior to navigation to their respective URL. Pre-loading allows us to to load our initial route
quickly, while other feature modules are loaded in the background. Once we navigate to those areas, they will have already been loaded
as if our they were included in our initial bundle.
as if they were included in our initial bundle.

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

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

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

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

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

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*,
which we learned is an object to store arbitrary route data and and [resolve data](#resolve-guard).
which, as we learned, is an object to store arbitrary route data and and [resolve data](#resolve-guard).

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
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
the `route.path` to the `preloadedModules` array in our custom strategy service. We'll also log a message
to the console for the preloaded module.

Expand Down