-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@schematics/angular): remove empty lines
The recet removal of enableProdMode in 283b564 introduced unnecessary empty lines in main.ts
- Loading branch information
1 parent
8c3577d
commit 84e3f77
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
packages/schematics/angular/application/files/src/main.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<% 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'; | ||
|
||
<% if(!!viewEncapsulation) { %> | ||
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)); | ||
<% } %> | ||
<% } %> |