mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| cli | ||
| demos/first-app | ||
| errors | ||
| examples | ||
| extended-diagnostics | ||
| guide | ||
| images | ||
| marketing | ||
| special-elements | ||
| start | ||
| tutorial | ||
| BUILD.bazel | ||
| file-not-found.md | ||
| license.md | ||
| navigation.json | ||