docs: Add error boundaries entries - #70560
Merged
Merged
Conversation
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 3, 2026 15:33
868ea54 to
055d738
Compare
SkyZeroZx
reviewed
Sep 3, 2026
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 3, 2026 15:44
055d738 to
1efd94c
Compare
JeanMeche
force-pushed
the
error-boundary-docs
branch
3 times, most recently
from
September 9, 2026 15:24
c0a90f5 to
062fd4b
Compare
6 tasks
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 10, 2026 04:41
062fd4b to
74bfb35
Compare
SkyZeroZx
reviewed
Sep 10, 2026
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 10, 2026 15:33
74bfb35 to
fd4393f
Compare
SkyZeroZx
reviewed
Sep 10, 2026
| Error handling isn't limited to template syntax. If you are creating components or embedded views dynamically using `ViewContainerRef` or the standalone `createComponent` function, you can provide an `onError` callback in the options object. This callback functions identically to an `@error` block but for imperatively created views. | ||
|
|
||
| ```ts | ||
| viewContainerRef.createComponent(DynamicComponent, { |
Contributor
There was a problem hiding this comment.
I think we can also avoid the "Component" suffix here
Suggested change
| viewContainerRef.createComponent(DynamicComponent, { | |
| viewContainerRef.createComponent(Dynamic, { |
SkyZeroZx
reviewed
Sep 10, 2026
leonsenft
approved these changes
Sep 10, 2026
atscott
reviewed
Sep 10, 2026
atscott
reviewed
Sep 10, 2026
atscott
left a comment
Contributor
There was a problem hiding this comment.
AGENT: Thank you for putting together the documentation for @boundary!
Overall, the content is well-structured and provides a clear overview of error boundaries in Angular templates. I have left inline suggestions focused on alignment with the Angular Documentation Style Guide and Google Technical Writing guidelines (sentence case in headings, present tense instead of future "will", active voice, avoiding Latin abbreviations and casual idioms).
Key highlights:
tools/manual_api_docs/blocks/boundary.md: Note that$retrywas updated to$resetin the compiler/runtime primitives. I have flagged this inline so the syntax matches the actual compiler implementation.- Section deduplication: The "Dynamic views and programmatic error handling" section is currently duplicated in full between
error-boundaries.mdandprogrammatic-rendering.md. Consider linking fromerror-boundaries.mdtoprogrammatic-rendering.md#handling-rendering-errorsto maintain a single source of truth. - Commit message headline: Minor note for whenever rebasing/squashing: per the commit message guidelines, headline summaries should not be capitalized (
docs: add error boundaries entries).
atscott
reviewed
Sep 10, 2026
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 10, 2026 20:37
fd4393f to
bed92d4
Compare
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 10, 2026 20:37
bed92d4 to
29af2cb
Compare
JeanMeche
force-pushed
the
error-boundary-docs
branch
from
September 10, 2026 20:38
29af2cb to
868d53c
Compare
Contributor
|
This PR was merged into the repository. The changes were merged into the following branches:
|
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.