withAppShell
Configures the app shell route with the provided component.
API
function withAppShell( component: Type<unknown> | (() => Promise<any>)): ServerRoutesFeature<ServerRoutesFeatureKind>;
withAppShell
ServerRoutesFeature<ServerRoutesFeatureKind>
Configures the app shell route with the provided component.
The app shell serves as the main entry point for the application and is commonly used to enable server-side rendering (SSR) of the application shell. It handles requests that do not match any specific server route, providing a fallback mechanism and improving perceived performance during navigation.
This configuration is particularly useful in applications leveraging Progressive Web App (PWA) patterns, such as service workers, to deliver a seamless user experience.
Type<unknown> | (() => Promise<any>)
The Angular component to render for the app shell route.
ServerRoutesFeature<ServerRoutesFeatureKind>
Description
Configures the app shell route with the provided component.
The app shell serves as the main entry point for the application and is commonly used to enable server-side rendering (SSR) of the application shell. It handles requests that do not match any specific server route, providing a fallback mechanism and improving perceived performance during navigation.
This configuration is particularly useful in applications leveraging Progressive Web App (PWA) patterns, such as service workers, to deliver a seamless user experience.