Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.2 KB

how-to-provide-not-found-page.md

File metadata and controls

31 lines (23 loc) · 1.2 KB

SCION Workbench

SCION Workbench Projects Overview Changelog Contributing Sponsoring

The workbench displays a "Not Found" page if no route matches the requested URL. This happens when navigating to a route that does not exist or when loading the application, and the routes have changed since the last use.

The built-in "Not Found" page can be replaced, e.g., to localize the page, as follows:

import {bootstrapApplication} from '@angular/platform-browser';
import {provideWorkbench} from '@scion/workbench';

bootstrapApplication(AppComponent, {
  providers: [
    provideWorkbench({
      pageNotFoundComponent: YourPageNotFoundComponent,
    }),
  ],
});