File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
tests/legacy-cli/e2e/tests Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ export default async function () {
55
55
// Issue: https://github.com/angular/angular-cli/issues/17320
56
56
await replaceInFile (
57
57
'src/app/app.config.ts' ,
58
- `import { ApplicationConfig } from '@angular/core';` ,
58
+ `from '@angular/core';` ,
59
59
`
60
- import { ApplicationConfig } from '@angular/core';
60
+ from '@angular/core';
61
61
import {
62
62
MomentDateAdapter,
63
63
MAT_MOMENT_DATE_FORMATS
@@ -72,10 +72,8 @@ export default async function () {
72
72
73
73
await replaceInFile (
74
74
'src/app/app.config.ts' ,
75
- `providers: [provideRouter(routes) ]` ,
76
- `
77
- providers: [
78
- provideRouter(routes),
75
+ `provideRouter(routes)` ,
76
+ `provideRouter(routes),
79
77
{
80
78
provide: DateAdapter,
81
79
useClass: MomentDateAdapter,
@@ -84,9 +82,7 @@ export default async function () {
84
82
{
85
83
provide: MAT_DATE_FORMATS,
86
84
useValue: MAT_MOMENT_DATE_FORMATS
87
- }
88
- ]
89
- ` ,
85
+ }` ,
90
86
) ;
91
87
92
88
await ng ( 'e2e' , '--configuration=production' ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default async function () {
20
20
await writeMultipleFiles ( {
21
21
// Add http client and route
22
22
'src/app/app.config.ts' : `
23
- import { ApplicationConfig } from '@angular/core';
23
+ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
24
24
import { provideRouter } from '@angular/router';
25
25
26
26
import {Home} from './home/home';
@@ -35,6 +35,7 @@ export default async function () {
35
35
}]),
36
36
provideClientHydration(),
37
37
provideHttpClient(withFetch()),
38
+ provideZoneChangeDetection({ eventCoalescing: true }),
38
39
],
39
40
};
40
41
` ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default async function () {
56
56
` ,
57
57
// Add http client and route
58
58
'src/app/app.config.ts' : `
59
- import { ApplicationConfig } from '@angular/core';
59
+ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
60
60
import { provideRouter } from '@angular/router';
61
61
62
62
import { Home } from './home/home';
@@ -71,6 +71,7 @@ export default async function () {
71
71
}]),
72
72
provideClientHydration(),
73
73
provideHttpClient(withFetch()),
74
+ provideZoneChangeDetection({ eventCoalescing: true }),
74
75
],
75
76
};
76
77
` ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default async function () {
24
24
await writeMultipleFiles ( {
25
25
// Add http client and route
26
26
'src/app/app.config.ts' : `
27
- import { ApplicationConfig } from '@angular/core';
27
+ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
28
28
import { provideRouter } from '@angular/router';
29
29
30
30
import { Home } from './home/home';
@@ -39,6 +39,7 @@ export default async function () {
39
39
}]),
40
40
provideClientHydration(),
41
41
provideHttpClient(withFetch()),
42
+ provideZoneChangeDetection({ eventCoalescing: true }),
42
43
],
43
44
};
44
45
` ,
You can’t perform that action at this time.
0 commit comments