diff --git a/packages/schematics/angular/application/files/src/main.ts.template b/packages/schematics/angular/application/files/src/main.ts.template index 0a0fb9fb0927..e830262f190f 100644 --- a/packages/schematics/angular/application/files/src/main.ts.template +++ b/packages/schematics/angular/application/files/src/main.ts.template @@ -1,5 +1,5 @@ -<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core';<% }%> -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core'; +<% }%>import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; @@ -7,8 +7,7 @@ import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule, { defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %> }) - .catch(err => console.error(err)); -<% } else { %> + .catch(err => console.error(err));<% } else { %> platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); -<% } %> +<% } %> \ No newline at end of file