docs: deprecate ViewEngine-based renderModuleFactory (#43757)

DEPRECATED:

The `renderModuleFactory` symbol in `@angular/platform-server` is no longer necessary as of Angular v13.

The `renderModuleFactory` calls can be replaced with `renderModule`.

PR Close #43757
This commit is contained in:
Alan Agius
2021-10-07 20:43:18 +02:00
committed by Joey Perrott
parent 35a1705595
commit 4eedf77fd0
3 changed files with 24 additions and 14 deletions
+4 -5
View File
@@ -93,11 +93,6 @@ the server-rendered app can be properly bootstrapped into a client app.`);
* `url` is the URL for the current render request.
* `extraProviders` are the platform level providers for the current render request.
*
* If compiling with the ViewEngine renderer, do not use this in a production server environment.
* Use pre-compiled {@link NgModuleFactory} with {@link renderModuleFactory} instead. If
* compiling with the Ivy renderer, this method is the recommended rendering method for
* platform-server.
*
* @publicApi
*/
export function renderModule<T>(
@@ -115,6 +110,10 @@ export function renderModule<T>(
* `extraProviders` are the platform level providers for the current render request.
*
* @publicApi
*
* @deprecated
* This symbol is no longer necessary as of Angular v13.
* Use {@link renderModule} API instead.
*/
export function renderModuleFactory<T>(
moduleFactory: NgModuleFactory<T>,