Sokpanya Sam Sokpanya Sam - 3 years ago 258
Node.js Question

@angular/cli: 1.4.1 Angular Generate Component but it returns home.component.css

$npm install -g @angular/cli
$ng new angular --routing --style=sass
$ng g c home
"apps": [
"styles": [

"defaults": {
"styleExt": "sass",
"component": {

I want to sass style in angular, I use angular cli, I try to generate component it returns with style with prefix css. May you help me to fixing that? Thanks in advance for your answer.

Answer Source

To override the default style, you can use the option --style [css|scss|sass]:

ng g c home --style=css
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download