-
Notifications
You must be signed in to change notification settings - Fork 151
feat(@schematics/angular): Add universal schematic #254
Conversation
| ], | ||
| bootstrap: [AppComponent], | ||
| }) | ||
| export class AppServerModule {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be __rootModuleFileName__ instead of AppServerModule.
| test: options.test, | ||
| tsconfig: options.tsconfigFileName, | ||
| testTsconfig: options.testTsconfigFileName, | ||
| environmentSource: 'environments/environment.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environments should be used together with environments, or not at all.
d47daa4 to
c6f8c29
Compare
|
I've addressed the comments from @filipesilva |
|
Would it be possible to augment the main.ts to include This is essential for StateTransfer which is a likely addition to Universal and often overlooked/unknown |
|
Opened angular/angular#20484 to investigate how to avoid the race condition in TransferState without needing specific way to bootstrap the client side. We should make TransferState work more transparently to the user. |
70d9753 to
0eec4c0
Compare
| const recorder = host.beginUpdate(mainPath); | ||
| const beforeText = `document.addEventListener('DOMContentLoaded', () => {\n `; | ||
| const afterText = `\n});`; | ||
| recorder.insertRight(bootstrapCall.getStart(), beforeText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically insertLeft ;)
0eec4c0 to
47d0512
Compare
No description provided.