![]() |
VOOZH | about |
Introduction:
Sass is a scripting language that is compiled into Cascading style sheets (CSS). It is a kind of preprocessor language. It was initially designed by Hampton Catlin and then it was developed by Natalie Weizenbaum. After its initial versions, Weizenbaum and Chris Eppstein have continued to extend SASS with SassScript. It supports four data types and they are Numbers, Strings, Colors, and booleans. Nesting also works in this language.
Approach regarding the question:
Implementation By code:
app.component.html:app.component.scss:
app.module.ts:
Output:
👁 ImageIf you clearly observe the above screenshot as the background color is applied only to the direct children.