-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(angular): Fix snippets that fail to compile #19333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ export class CustomErrorHandler extends Sentry.SentryErrorHandler { | |
| super({ logErrors: false }); | ||
| } | ||
|
|
||
| handleError(error: any): void { | ||
| override handleError(error: any): void { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. m: is this valid syntax? Angular docs for error handlers don't mention an
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. I (... Claude) created a new project with When leaving
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm okay, maybe the angular docs are out of date 😅 |
||
| // Your custom error handling logic | ||
| // Call Sentry's error handler to capture errors: | ||
| super.handleError(error); | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The HTML template in the Angular documentation example still uses
<app-icon>and<app-button>, which are not defined, causing a compilation error.Severity: MEDIUM
Suggested Fix
Remove the undefined
<app-icon>and<app-button>elements from theuser-card.component.htmltemplate snippet in the documentation. This will align the HTML with the component's definition and resolve theNG8001compilation error, making the example code valid and buildable.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.