angular/packages/platform-server/src
Alan Agius 41f27ad086 refactor(platform-server): remove renderApplication overload that accepts a component (#49463)
This commit removes the `renderApplication` overload that accepts a root component as the first parameter.

BREAKING CHANGE:

`renderApplication` method no longer accepts a root component as first argument. Instead, provide a bootstrapping function that returns a `Promise<ApplicationRef>`.

Before
```ts
const output: string = await renderApplication(RootComponent, options);
```

Now
```ts
const bootstrap = () => bootstrapApplication(RootComponent, appConfig);
const output: string = await renderApplication(bootstrap, options);
```

PR Close #49463
2023-03-22 16:40:31 +01:00
..
bundled-domino.d.ts fix(platform-server): bundle @angular/domino in via esbuild (#49229) 2023-02-28 13:34:50 -08:00
domino_adapter.ts fix(platform-server): bundle @angular/domino in via esbuild (#49229) 2023-02-28 13:34:50 -08:00
http.ts refactor(http): introduce the functional interceptors API (#47502) 2022-10-06 19:02:45 +00:00
location.ts fix(common): cleanup location change listeners when the root view is removed (#40867) 2021-03-04 13:09:04 -08:00
platform-server.ts feat(platform-server): add provideServerSupport function to provide server capabilities to an application (#49380) 2023-03-14 09:23:13 -07:00
platform_state.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
private_export.ts refactor(platform-server): add a marker to specify how a page was rendered (#47103) 2022-09-12 19:05:48 -07:00
provide_server.ts feat(platform-server): add provideServerSupport function to provide server capabilities to an application (#49380) 2023-03-14 09:23:13 -07:00
server.ts refactor(platform-server): remove ServerStylesHost (#49424) 2023-03-17 10:46:03 +01:00
server_events.ts perf(core): minor improvements to listener instructions (#41807) 2021-04-30 14:14:00 -07:00
server_renderer.ts fix(platform-browser): reuse server generated component styles (#48253) 2023-03-09 09:33:34 -08:00
tokens.ts refactor(platform-server): remove deprecated renderModuleFactory (#49247) 2023-03-01 12:32:32 -08:00
transfer_state.ts refactor(core): move TransferState implementation to core (#49222) 2023-02-27 13:08:40 -08:00
types.d.ts refactor(platform-server): switch from dynamic require to import statement (#43431) 2021-10-01 18:28:43 +00:00
utils.ts refactor(platform-server): remove renderApplication overload that accepts a component (#49463) 2023-03-22 16:40:31 +01:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00