angular/aio/content
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
..
cli docs: update Angular CLI help [main] (#51325) 2023-08-11 06:22:03 -07:00
demos/first-app docs: add the doc type attribute (#51332) 2023-08-15 09:53:05 -07:00
errors docs: Add Missing SSR integrity marker error doc page (#51340) 2023-08-14 14:39:25 -07:00
examples docs(router): Clarify how to clear secondary routes (#51376) 2023-08-15 15:43:17 -07:00
extended-diagnostics feat(compiler-cli): Add an extended diagnostic for nSkipHydration (#49512) 2023-03-23 13:54:03 -07:00
guide docs(router): Clarify how to clear secondary routes (#51376) 2023-08-15 15:43:17 -07:00
images docs: Adding myself to the collaborators (#50494) 2023-05-30 13:05:55 -07:00
marketing docs: add new UI library resource from the Tailwind CSS ecosystem (#50976) 2023-08-15 11:29:39 -07:00
special-elements docs: selector precisions (#50534) 2023-06-01 08:43:59 -07:00
start docs: improve readability, use future tense to indicate future events (#49578) 2023-07-26 10:03:04 -07:00
tutorial docs: updated the tour of heroes doc file (#51151) 2023-07-25 10:24:52 -07:00
BUILD.bazel ci: add Angular CLI help pages action (#48577) 2023-01-10 08:01:38 -08:00
file-not-found.md docs: improve markdown (#45325) 2022-04-08 19:36:30 +00:00
license.md docs: updated the http tag with https (#50927) 2023-07-14 09:44:55 -07:00
navigation.json docs: remove the links to docs.angular.lat (#51117) 2023-07-20 20:21:29 +00:00