fix(core): set ViewEncapsulation.Emulated as the default again

Fixes #4494
This commit is contained in:
Tobias Bosch
2015-10-05 09:49:05 -07:00
parent 6fe8b85295
commit a9aef8e5e6
3 changed files with 18 additions and 5 deletions

View File

@ -64,7 +64,7 @@ export class CompileTemplateMetadata {
styleUrls?: string[],
ngContentSelectors?: string[]
} = {}) {
this.encapsulation = encapsulation;
this.encapsulation = isPresent(encapsulation) ? encapsulation : ViewEncapsulation.Emulated;
this.template = template;
this.templateUrl = templateUrl;
this.styles = isPresent(styles) ? styles : [];