Created
September 18, 2023 12:12
-
-
Save sp90/7ed5b13051514d7c96f6c15231c44835 to your computer and use it in GitHub Desktop.
Workaround to have withViewTransitions() running on your angular/ssr server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const baseAppConfig: ApplicationConfig = { | |
providers: [ | |
provideRouter(routes, withComponentInputBinding()) | |
], | |
}; | |
export const appConfig: ApplicationConfig = mergeApplicationConfig(baseAppConfig, { | |
providers: [provideRouter(routes, withComponentInputBinding(), withViewTransitions())] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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