mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +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: [
|
||||
AppComponent
|
||||
],
|
||||
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||
],<% if(experimentalZoneless) { %>
|
||||
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
|
@ -5,8 +5,8 @@ import { AppComponent } from './app.component';
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [AppComponent],
|
||||
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||
imports: [AppComponent],<% if(experimentalZoneless) { %>
|
||||
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
|
@ -4,7 +4,5 @@ import { provideRouter } from '@angular/router';
|
||||
import { routes } from './app.routes';<% } %>
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>
|
||||
]
|
||||
providers: [<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>]
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user