feat(server): renderApplication now accepts a bootstrapping method#49248
feat(server): renderApplication now accepts a bootstrapping method#49248alan-agius4 wants to merge 2 commits intoangular:mainfrom
renderApplication now accepts a bootstrapping method#49248Conversation
There was a problem hiding this comment.
Since this API is developer preview, can we just remove instead of deprecating?
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
There was a problem hiding this comment.
Correct and also if we are going to keep the current method to pass in a component type deprecate passing in the APP_ID.
I am okay with keeping it for now. Although I did have to add an additional private export to core to check if it's a bootstrap function or a component type.
4784b32 to
420977f
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
@alan-agius4 looks great 👍 Just left a couple non-blocking comments.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
|
OOC what is this trying to solve? Sorry if it isn't obvious for me |
035921b to
04fed46
Compare
|
@alfaproject This is needed for a cleaner integration when using SSR and SSG. Where users do not have direct access to |
dylhunn
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
|
@alan-agius4 it looks like this PR has a merge conflict with the main branch right now (likely due to another PR that removed |
…g method The `renderApplication` now also accepts a bootstrapping function call with return `Promise<ApplicationRef>`as the first parameter. Example: ```ts const bootstrap = () => bootstrapApplication(RootComponent, appConfig); const output: string = await renderApplication(bootstrap); ```
04fed46 to
be34a3c
Compare
|
@AndrewKushnir rebased. Caretaker note: I don’t think this required another presubmit seeing that it’s just a rebase and the changes. |
|
This PR was merged into the repository by commit b5278cc. |
|
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. |
The
renderApplicationnow also accepts a bootstrapping function call with returnPromise<ApplicationRef>as the first parameter.Example: