mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
refactor(@schematics/angular): spacing fixes after experimental zoneless introduction
This commit is contained in:
parent
1ac8b41985
commit
8ce57fea5f
@ -11,8 +11,8 @@ describe('AppComponent', () => {
|
|||||||
],<% } %>
|
],<% } %>
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent
|
||||||
],
|
],<% if(experimentalZoneless) { %>
|
||||||
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import { AppComponent } from './app.component';
|
|||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [AppComponent],
|
imports: [AppComponent],<% if(experimentalZoneless) { %>
|
||||||
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -4,7 +4,5 @@ import { provideRouter } from '@angular/router';
|
|||||||
import { routes } from './app.routes';<% } %>
|
import { routes } from './app.routes';<% } %>
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [
|
providers: [<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>]
|
||||||
<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user