$npm install -g @angular/cli
$ng new angular --routing --style=sass
$ng g c home
"apps": [
{
"styles": [
"styles.sass"
],
}
"defaults": {
"styleExt": "sass",
"component": {
}
}
To override the default style, you can use the option --style [css|scss|sass]
:
ng g c home --style=css