Skip to content

Instantly share code, notes, and snippets.

@sp90
Created September 18, 2023 12:12
Show Gist options
  • Save sp90/7ed5b13051514d7c96f6c15231c44835 to your computer and use it in GitHub Desktop.
Save sp90/7ed5b13051514d7c96f6c15231c44835 to your computer and use it in GitHub Desktop.
Workaround to have withViewTransitions() running on your angular/ssr server
export const baseAppConfig: ApplicationConfig = {
providers: [
provideRouter(routes, withComponentInputBinding())
],
};
export const appConfig: ApplicationConfig = mergeApplicationConfig(baseAppConfig, {
providers: [provideRouter(routes, withComponentInputBinding(), withViewTransitions())]
});
const serverConfig: ApplicationConfig = {
providers: [provideServerRendering()]
};
export const config = mergeApplicationConfig(baseAppConfig, serverConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment