How to enable inline SCSS template for angular component style using angular cli

In the Codelyzer Test File, I saw how SCSS was used in a style sheet. Can I enable it using the Angular CLI?

My SCSS setup works when using styleUrls , but not for the direct styles component decorator property.

Update:

I am using Angular CLI 1.0.0 with Angular 4.0.1

This is the error shown in the WebStorm IDE

error in webstorm IDE

+5
source share
1 answer

Try this in the terminal:

 ng new {project name} --inline-style --style=scss 
0
source

Source: https://habr.com/ru/post/1266270/


All Articles