refactor(@schematics/angular): spacing fixes after experimental zoneless introduction

This commit is contained in:
cexbrayat 2024-10-17 11:31:04 +02:00 committed by Jan Olaf Martin
parent 1ac8b41985
commit 8ce57fea5f
3 changed files with 5 additions and 7 deletions

View File

@ -11,8 +11,8 @@ describe('AppComponent', () => {
],<% } %> ],<% } %>
declarations: [ declarations: [
AppComponent AppComponent
], ],<% if(experimentalZoneless) { %>
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %> providers: [provideExperimentalZonelessChangeDetection()]<% } %>
}).compileComponents(); }).compileComponents();
}); });

View File

@ -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();
}); });

View File

@ -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)<% } %>
]
}; };