File tree 4 files changed +30
-1
lines changed
4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 27
27
"dev" : " environments/environment.ts" ,
28
28
"prod" : " environments/environment.prod.ts"
29
29
}
30
+ },
31
+ {
32
+ "root" : " src" ,
33
+ "outDir" : " dist-server" ,
34
+ "assets" : [
35
+ " assets" ,
36
+ " favicon.ico"
37
+ ],
38
+ "index" : " index.html" ,
39
+ "main" : " main.server.ts" ,
40
+ "test" : " test.ts" ,
41
+ "tsconfig" : " tsconfig.server.json" ,
42
+ "testTsconfig" : " tsconfig.spec.json" ,
43
+ "prefix" : " " ,
44
+ "styles" : [
45
+ " styles.scss"
46
+ ],
47
+ "scripts" : [],
48
+ "environmentSource" : " environments/environment.ts" ,
49
+ "environments" : {
50
+ "dev" : " environments/environment.ts" ,
51
+ "prod" : " environments/environment.prod.ts"
52
+ },
53
+ "platform" : " server" ,
54
+ "name" : " ssr-app"
30
55
}
31
56
],
32
57
"e2e" : {
Original file line number Diff line number Diff line change @@ -50,3 +50,5 @@ Thumbs.db
50
50
51
51
dist-server
52
52
prerender.html
53
+
54
+ dist-server
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import { HttpClientModule} from '@angular/common/http';
40
40
CourseDialogComponent ,
41
41
] ,
42
42
imports : [
43
- BrowserModule ,
43
+ BrowserModule . withServerTransition ( { appId : 'serverApp' } ) ,
44
44
BrowserAnimationsModule ,
45
45
MatMenuModule ,
46
46
MatButtonModule ,
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ if (environment.production) {
11
11
}
12
12
13
13
document . addEventListener ( 'DOMContentLoaded' , ( ) => {
14
+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
14
15
platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
15
16
. catch ( err => console . log ( err ) ) ;
16
17
} ) ;
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments