parent
f7ee6b9c1c
commit
ead6987d00
@ -104,7 +104,7 @@ include ../_util-fns
|
|||||||
### Router Outlet
|
### Router Outlet
|
||||||
Now we know how the router gets its configuration.
|
Now we know how the router gets its configuration.
|
||||||
When the browser URL for this application becomes `/heroes`,
|
When the browser URL for this application becomes `/heroes`,
|
||||||
the router matches that URL to the `RouteDefintion` named *Heroes* and displays the `HeroListComponent`
|
the router matches that URL to the `RouteDefinition` named *Heroes* and displays the `HeroListComponent`
|
||||||
in a **`RouterOutlet`** that we've placed in the host view's HTML.
|
in a **`RouterOutlet`** that we've placed in the host view's HTML.
|
||||||
code-example(format="", language="html").
|
code-example(format="", language="html").
|
||||||
<!-- Routed views go here -->
|
<!-- Routed views go here -->
|
||||||
@ -318,7 +318,7 @@ figure.image-display
|
|||||||
.l-sub-section
|
.l-sub-section
|
||||||
:marked
|
:marked
|
||||||
#### Live example note
|
#### Live example note
|
||||||
We have to be get tricky when we run the live example because the host service sets
|
We have to get tricky when we run the live example because the host service sets
|
||||||
the application base address dynamically. That's why we replace the `<base href...>` with a
|
the application base address dynamically. That's why we replace the `<base href...>` with a
|
||||||
script that writes a `<base>` tag on the fly to match.
|
script that writes a `<base>` tag on the fly to match.
|
||||||
code-example(format="")
|
code-example(format="")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user