Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aspnetcore-engine): support .NET Core version 3
.NET Core version 3 users use the `completeHTML` property instead of `html` to avoid the below error. ``` InvalidOperationException: Globals is not supported when prerendering via UseSpaPrerendering(). Instead, your prerendering logic should return a complete HTML page, in which you embed any information you wish to return to the client. ``` .NET Core 3 usage examples ``` export default createServerRenderer(async params => { // Platform-server provider configuration const setupOptions: IEngineOptions = { appSelector: '<app-root></app-root>', ngModule: AppServerModule, document: params.data.originalHtml, request: params, providers: [ ... ] }; const { completeHTML } = await ngAspnetCoreEngine(setupOptions); return { html: completeHTML }; }); ```
- Loading branch information
1 parent
adbab25
commit 16c7c84
Showing
4 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
@alan-agius4
@nguniversal/common-engine
I think it will be @nguniversal/common.