Skip to content

Commit

Permalink
fix(@schematics/angular): remove ViewEncapsulation from root component
Browse files Browse the repository at this point in the history
  • Loading branch information
cexbrayat authored and mgechev committed Feb 22, 2019
1 parent a47fb6f commit 3420f66
Showing 1 changed file with 2 additions and 3 deletions.
@@ -1,4 +1,4 @@
import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
import { Component } from '@angular/core';

@Component({
selector: '<%= selector %>',<% if(inlineTemplate) { %>
Expand Down Expand Up @@ -28,8 +28,7 @@ import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } fro
`,<% } else { %>
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
styles: []<% } else { %>
styleUrls: ['./app.component.<%= styleExt %>']<% } %>,<% if(!!viewEncapsulation) { %>,
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } %>
styleUrls: ['./app.component.<%= styleExt %>']<% } %>
})
export class AppComponent {
title = '<%= name %>';
Expand Down

0 comments on commit 3420f66

Please sign in to comment.