Skip to content

Commit 9c767b0

Browse files
authored
Merge pull request #101 from wellwind/codex/update-bootstrap-function-for-angular
Update server bootstrap to pass BootstrapContext
2 parents bfa688a + e2db814 commit 9c767b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { bootstrapApplication } from '@angular/platform-browser';
1+
import { bootstrapApplication, BootstrapContext } from '@angular/platform-browser';
22
import { AppComponent } from './app/app.component';
33
import { config } from './app/app.config.server';
44

5-
const bootstrap = () => bootstrapApplication(AppComponent, config);
5+
const bootstrap = (context: BootstrapContext) =>
6+
bootstrapApplication(AppComponent, config, context);
67

78
export default bootstrap;

0 commit comments

Comments
 (0)