mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user