docs(toh-5): copyedit + add callout to importance of base href (#3282)
This commit is contained in:
parent
1d560d55f2
commit
d41ac241e7
@ -168,6 +168,21 @@ block angular-router
|
|||||||
and a configuration (`Routes`). We'll configure our routes first.
|
and a configuration (`Routes`). We'll configure our routes first.
|
||||||
|
|
||||||
:marked
|
: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
|
a#configure-routes
|
||||||
block router-config-intro
|
block router-config-intro
|
||||||
:marked
|
:marked
|
||||||
@ -599,7 +614,7 @@ block extract-id
|
|||||||
When hovering over a hero block, the target URL should display in the browser status bar
|
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.
|
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:
|
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)')
|
+makeExample('src/app/dashboard.component.html', 'click', 'src/app/dashboard.component.html (repeated <a> tag)')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user