Repository navigation
docs: Add error boundaries entries - #70560
Conversation
868ea54 to
055d738
Compare
055d738 to
1efd94c
Compare
c0a90f5 to
062fd4b
Compare
062fd4b to
74bfb35
Compare
74bfb35 to
fd4393f
Compare
| 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, { |
There was a problem hiding this comment.
I think we can also avoid the "Component" suffix here
| viewContainerRef.createComponent(DynamicComponent, { | |
| viewContainerRef.createComponent(Dynamic, { |
atscott
left a comment
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).
fd4393f to
bed92d4
Compare
bed92d4 to
29af2cb
Compare
29af2cb to
868d53c
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.