Skip to content

.angular-cli.json default component viewEncapsulation #8082

Closed
@steavengong

Description

@steavengong

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ x ] feature request

Versions.

@angular/cli: 1.4.7
node: 7.9.0
os: darwin x64

Repro steps.

in .angular-cli.json

"defaults": {
"styleExt": "scss",
"component": {
"spec": false,
"viewEncapsulation": "None"
}
}

use cli ng g component my-component

it don't add 'encapsulation: ViewEncapsulation.None' in my-component.component.ts

@component({
selector: 'my-component',
templateUrl: './my-component.component.html',
styleUrls: ['./my-component.component.scss']
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulseverity5: regressiontype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions