⊗jsagPmBsCSF 11 of 97 menu

Angular Component Style File

The app.component.css file contains the component styles. At the same time, Angular itself ensures the modularity of these styles. This means that all styles will be applied only to the layout of our component, without hooking other tags.

As an example, let's style the div text:

div { color: red; }

Make two divs with text: the first in your component layout and the second in the site layout. Style the component div. Check that the div in the site layout will not be styled.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline