change css to scss angular
ng config schematics.@schematics/angular:component.styleext scss
change css to scss angular
ng config schematics.@schematics/angular:component.styleext scss
how to import scss file in angular
In the new angular v6, importing sass files is a little different from the previous version.
I just needed to import like this (in a component stylesheet)
@import "~src/sass/variables"; // note: without file extension
Now everything works fine
Thanks all for the help
how to generate angular component with scss
ng g component componentname
//it will automatically create 4 files
//componentname.html
//componentname.scss
//componentname.ts
//componentname.spec.ts
scss angular
1) Add the `src/styles.scss reference to the
angular.json build/options/styles section
2) Create a styles.scss file and add it to your src folder
(If you create a new project just choose the scss option and the CLI
will perform these steps for you)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us