feat(platform-server): add provideServerSupport function to provide server capabilities to an application#49380
feat(platform-server): add provideServerSupport function to provide server capabilities to an application#49380alan-agius4 wants to merge 2 commits intoangular:mainfrom
provideServerSupport function to provide server capabilities to an application#49380Conversation
e48d0ae to
b68d675
Compare
… server capabilities to an application This commit adds the `provideServerSupport()` function that returns the `EnvironmentProviders` needed to setup server rendering without NgModules.
b68d675 to
0cc694e
Compare
jessicajaniuk
left a comment
There was a problem hiding this comment.
reviewed-for: fw-platform-server, public-api
AndrewKushnir
left a comment
There was a problem hiding this comment.
@alan-agius4 I think it'd be great to avoid the usage of importProvidersFrom and just use the functions that return providers directly.
We could also update the renderApplication providers here to use the new method and replace BrowserModule.withServerTransition with an APP_ID provider. WDYT?
angular/packages/platform-server/src/utils.ts
Lines 242 to 243 in 86fc4d3
…provide server capabilities to an application
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
|
This PR was merged into the repository by commit 056d680. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit adds the
provideServerSupport()function that returns theEnvironmentProvidersneeded to setup server rendering without NgModules.