- Notifications
You must be signed in to change notification settings - Fork26.7k
Description
Describe the problem that you experienced
The currentApplicationRef
API page lists members and a brief description, but it lacks practical, end-to-end guidance for common, modern scenarios: dynamically attaching views, understanding app stability (isStable, whenStable),. This issue proposes augmenting the docs with usage patterns, do’s and copy-pastable examples.
Developers often encounter ApplicationRef while:
Dynamically creating/attaching components outside the router or a component tree (e.g., overlays, global popups). Today, createComponent shows a minimal attach example but the ApplicationRef page doesn’t tie it all together or discuss lifecycles
Enter the URL of the topic with the problem
No response
Describe what you were looking for in the documentation
Only i see :
https://angular.dev/api/core/ApplicationRef
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
No response
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
I could add the documentation with some usage examples, I would just have a question about which part would be the best place to create a section.
It might be possible to do this with dynamic component creation, as proposed in a similar PR.
#64240