angular-cn/aio/content/marketing
George Kalpakas 6abbaaed89 fix(docs-infra): do not use an Angular element in hard-coded `FETCH_ERROR` document (#27250)
The `FETCH_ERROR` document is used when we are unable to retrieve a
document (except for 404 errors), which includes when there is no
internet connection. Using the `<current-location>` element in the
document's template to show the path of the page we failed to retrieve
assumes that the element's bundle is available (e.g. cached by the SW)
or can be fetched from the server.

When none of these conditions is met, the `DocViewer` is unable to
prepare the document and fails, never showing the `FETCH_ERROR` page to
the user.

Furthermore, the path we are looking to retrieve via
`<current-location>` is essentially the document ID, which we already
have. Thus, loading and instantiating a whole component just for that is
overkill.

This commit addresses both issues by getting rid of the
`<current-location>` component and directly embedding the document ID
into the `FETCH_ERROR` content.

PR Close #27250
2018-12-05 13:26:27 -08:00
..
about.html feat(aio): add Table of Contents (toc) component. (#16078) 2017-04-27 15:32:46 -07:00
announcements.json docs(aio): add mix and connect to front page campaigns (#24357) 2018-06-08 13:31:28 -07:00
api.html feat(aio): add Table of Contents (toc) component. (#16078) 2017-04-27 15:32:46 -07:00
contribute.html docs: update contributing page (#26497) 2018-10-17 11:24:19 -07:00
contributors.json docs: move Minko to Angular (#27339) 2018-11-29 21:21:54 -08:00
docs.md docs: Rename 'QuickStart' into 'Getting Started' (#25762) 2018-10-05 15:43:16 -07:00
events.html docs: move past events on events page (#27342) 2018-11-29 21:21:24 -08:00
features.html docs: correct node.js version and usage (#23565) 2018-04-27 07:19:14 -07:00
index.html feat(aio): enable data driven homepage announcements (#22043) 2018-02-09 13:10:11 -08:00
presskit.html refactor(docs-infra): move concept icons to more appropriate location (#19795) 2018-08-27 16:30:42 -04:00
resources-contributing.md docs(aio): Add resources contributor info 2017-07-01 14:38:26 +01:00
resources.html docs(aio): use h1 rather than divs and hide heading anchors 2017-06-07 11:26:27 -07:00
resources.json docs: add Angular subreddit to resources.json (#26976) 2018-11-08 13:09:36 -08:00
test.html fix(docs-infra): do not use an Angular element in hard-coded `FETCH_ERROR` document (#27250) 2018-12-05 13:26:27 -08:00