diff --git a/packages/schematics/angular/application/other-files/app.module.ts b/packages/schematics/angular/application/other-files/app.module.ts index 281482250cfa..4ef3c6e953a1 100644 --- a/packages/schematics/angular/application/other-files/app.module.ts +++ b/packages/schematics/angular/application/other-files/app.module.ts @@ -1,6 +1,6 @@ -import { BrowserModule } from '@angular/platform-browser'; +<% if (!experimentalIvy) { %>import { BrowserModule } from '@angular/platform-browser';<% } %> import { NgModule } from '@angular/core'; -<% if (routing) { %> +<% if (routing && !experimentalIvy) { %> import { AppRoutingModule } from './app-routing.module';<% } %> import { AppComponent } from './app.component';