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
scss how to use a variable in entire angular project
/*in the src/_variables file:*/
$primary-color: blue;
/*in the component you want to use the variable:*/
@use 'src/variables' as c;
.container-fluid {
text-align: center;
background-color: c.$primary-color;
}
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