Skip to content
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

ErrorHandler docs don't have standalone alternative #55579

Open
mgechev opened this issue Apr 29, 2024 · 2 comments
Open

ErrorHandler docs don't have standalone alternative #55579

mgechev opened this issue Apr 29, 2024 · 2 comments
Assignees
Labels
area: adev Angular.dev documentation area: docs Related to the documentation P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone

Comments

@mgechev
Copy link
Member

mgechev commented Apr 29, 2024

Describe the problem that you experienced

We haven't added docs on how to use ErrorHandler without NgModules https://angular.dev/api/core/ErrorHandler?tab=usage-notes

Add documentation on how to use ErrorHandler without NgModules in the app config:

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    { provide: ErrorHandler, useClass: GlobalHandler },
  ],
};
@mgechev mgechev added area: adev Angular.dev documentation area: docs Related to the documentation labels Apr 29, 2024
@ngbot ngbot bot modified the milestone: needsTriage Apr 29, 2024
@bencodezen bencodezen added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Apr 29, 2024
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Apr 29, 2024
@fredsa
Copy link

fredsa commented Apr 29, 2024

Please also document how to add an ApplicationConfig to an app that doesn't have one.

@JeanMeche
Copy link
Member

@fredsa While better linking would indeed be better, what you are looking for is here : https://angular.dev/api/platform-browser/bootstrapApplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: adev Angular.dev documentation area: docs Related to the documentation P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

5 participants