angular/aio/content/examples
Andrew Scott 6791f41308 docs(router): Clarify how to clear secondary routes (#51376)
The example for clearing secondary outlets currently only works because
the named outlet appears at the root of the application's route config.
If developers follow this example with an outlet that is not at the
root level, they will not be able to close the outlet.
This commit updates the example to provide a more robust way
of clearing the outlet from the activated outlet component
as well as providing a warning about how the commands are applied.

Lastly, there is a small bit of guidance provided for developers who
might want to explore the ability to close an outlet from any location
in the app, without needing to be aware of the activated route.
An example of this can be found here:
https://stackblitz.com/edit/close-outlet-from-anywhere

resolves #51373
resolves #13523

PR Close #51376
2023-08-15 15:43:17 -07:00
..
accessibility build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
ajs-quick-reference build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
angular-compiler-options docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00
angular-linker-plugin docs: fix ellipsis in code-snippet in creating-libraries guide (#45820) 2022-05-09 11:08:46 -07:00
animations refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
architecture build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
attribute-binding docs(docs-infra): update precedence of binding dynamic example and commentary (#48636) 2023-01-04 12:16:40 -08:00
attribute-directives docs: removed empty methods (#48343) 2022-12-05 12:03:33 -08:00
binding-syntax build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
bootstrapping docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
built-in-directives build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
built-in-template-functions docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
cli-builder/src docs: update CLI builder to be platform agnostic (#42371) 2021-06-01 10:13:02 -07:00
comparing-observables build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-interaction docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
component-overview build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-styles build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
content-projection build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dependency-injection docs: Improve documentation about Injection context / inject (#49782) 2023-07-10 07:09:31 -07:00
dependency-injection-in-action docs: removed unused methods (#50631) 2023-06-09 17:41:55 +02:00
deprecation-guide refactor(core): Remove ReflectiveInjector symbol (#48103) 2023-04-04 16:43:53 -07:00
displaying-data docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
docs-style-guide build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
dynamic-component-loader docs: type clearTimer function as VoidFunction or undefined (#48480) 2023-04-18 19:03:57 +00:00
dynamic-form docs: cleanup the components (#48382) 2022-12-09 13:31:45 -08:00
elements docs: Update Popup.service example to remove ComponentFactoryResolver (#49638) 2023-03-30 09:38:15 -07:00
errors/cyclic-imports refactor(compiler-cli): error on cyclic imports in partial compilation (#40782) 2021-02-17 06:53:38 -08:00
event-binding docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
feature-modules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
first-app-lesson-00 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-01 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-02 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-03 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-04 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-05 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-06 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-07 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-08 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-09 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-10 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-11 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-12 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-13 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-14 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
form-validation docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
forms docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
forms-overview build: ensure chromium is not using sandbox within Bazel sandbox for AIO example e2e tests (#49293) 2023-03-03 19:41:35 +00:00
getting-started docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00
getting-started-v0 docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
hierarchical-dependency-injection docs: add legend tag to fieldset (#51259) 2023-08-09 17:18:38 -07:00
http build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
i18n docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
inputs-outputs docs(docs-infra): Adding required and Transform Args into the usage and documentation of input (#51173) 2023-07-26 10:03:41 -07:00
interpolation build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
lazy-loading-ngmodules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
lifecycle-hooks build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
ngcontainer build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
ngmodules docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
observables docs: type clearTimer function as VoidFunction or undefined (#48480) 2023-04-18 19:03:57 +00:00
observables-in-angular build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
pipes build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
practical-observable-usage docs: remove pipe in exponential backoff (#49494) 2023-03-21 07:58:05 +01:00
property-binding docs: refactored the markup tags (#50481) 2023-05-30 09:21:58 -07:00
providers docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
providers-viewproviders docs: clarify example instructions (#50371) 2023-05-22 14:45:28 +00:00
reactive-forms build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
resolution-modifiers docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
router docs(router): Clarify how to clear secondary routes (#51376) 2023-08-15 15:43:17 -07:00
router-tutorial build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
routing-with-urlmatcher docs: add the doc type attribute (#51332) 2023-08-15 09:53:05 -07:00
rx-library build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
schematics-for-libraries docs: update schematic authoring guide to use new utilities (#50667) 2023-06-12 19:15:45 +02:00
security docs: added title attribute to the iframe tag (#50569) 2023-06-12 11:24:35 +02:00
service-worker-getting-started build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
setup docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
structural-directives docs: remove duplicate words. (#51215) 2023-08-01 12:08:33 -07:00
styleguide docs: standardize examples using timers for SSR compatibility (#48480) 2023-04-18 19:03:57 +00:00
template-expression-operators docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
template-reference-variables docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
template-syntax build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
testing build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
toh-pt0 build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
toh-pt1 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt2 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt3 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt4 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt5 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt6 refactor(router): Remove RouterTestingModule in favor of RouterModule.forRoot (#49427) 2023-04-04 15:12:33 -07:00
two-way-binding build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
universal build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
upgrade-lazy-load-ajs docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
upgrade-module docs: add title tag to index file (#51266) 2023-08-04 11:29:49 -04:00
upgrade-phonecat-1-typescript build(bazel): selectively enable network access for some aio targets 2022-11-22 13:51:16 -07:00
upgrade-phonecat-2-hybrid ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
upgrade-phonecat-3-final ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
user-input build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
view-encapsulation build(bazel): remaining AIO Bazel migration fixes 2022-11-22 13:51:16 -07:00
what-is-angular docs: invert logic for disabled in getting started docs (#50822) 2023-06-23 09:37:10 -07:00
.eslintrc.json build: update dependency eslint-plugin-jsdoc to v45 (#50523) 2023-05-31 12:34:26 -07:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
examples.bzl docs: add first-app lesson-14 (#49980) 2023-05-01 10:02:19 -07:00
tsconfig.eslint.json refactor(docs-infra): use eslint in aio's example-lint script (#43218) 2021-12-15 12:28:46 -05:00