Skip to content

Commit 3420f66

Browse files
cexbrayatmgechev
authored andcommitted
fix(@schematics/angular): remove ViewEncapsulation from root component
1 parent a47fb6f commit 3420f66

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/schematics/angular/application/other-files/app.component.ts.template

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: '<%= selector %>',<% if(inlineTemplate) { %>
@@ -28,8 +28,7 @@ import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } fro
2828
`,<% } else { %>
2929
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
3030
styles: []<% } else { %>
31-
styleUrls: ['./app.component.<%= styleExt %>']<% } %>,<% if(!!viewEncapsulation) { %>,
32-
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } %>
31+
styleUrls: ['./app.component.<%= styleExt %>']<% } %>
3332
})
3433
export class AppComponent {
3534
title = '<%= name %>';

0 commit comments

Comments
 (0)