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 61cca41 commit 58bc5b8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 58bc5b8

Please sign in to comment.