docs(toh-5): copyedit + add callout to importance of base href (#3282)

This commit is contained in:
Patrice Chalin 2017-02-21 08:13:09 -08:00 committed by Jesús Rodríguez
parent 1d560d55f2
commit d41ac241e7
1 changed files with 16 additions and 1 deletions

View File

@ -168,6 +168,21 @@ block angular-router
and a configuration (`Routes`). We'll configure our routes first.
:marked
### *<base href>*
Open `index.html` and ensure there is a `<base href="...">` element
(or a script that dynamically sets this element)
at the top of the `<head>` section.
+makeExcerpt('src/index.html', 'base-href')
.callout.is-important
header base href is essential
:marked
See the *base href* section of the [router](../guide/router.html#base-href)
guide to learn why this matters, and what to add if the `base`
element is missing.
a#configure-routes
block router-config-intro
:marked
@ -599,7 +614,7 @@ block extract-id
When hovering over a hero block, the target URL should display in the browser status bar
and the user should be able to copy the link or open the hero detail view in a new tab.
To achieve this effect, reopen the `dashboard.component.html` and replace the repeated `<div *ngFor...>` tags
To achieve this effect, reopen the <span ngio-ex>dashboard.component.html</span> and replace the repeated `<div *ngFor...>` tags
with `<a>` tags. The opening `<a>` tag looks like this:
+makeExample('src/app/dashboard.component.html', 'click', 'src/app/dashboard.component.html (repeated <a> tag)')