I'm diving into Angular for the first time and currently tackling the task of adding some style to an existing project. The project is structured using components, meaning each page consists of 4 files:
- mypage.component.css
- mypage.component.html
- mypage.component.spec.ts
- mypage.component.ts
While it's easy to apply styles directly to the css file in the component and see them reflected on the page, I'm facing a challenge with repetitive styling across multiple pages. Copying and pasting the same styles into each css file does work, but it's not the most elegant or efficient solution.
I'm looking to implement a global.css file that can be accessed by all pages, allowing me to write the CSS code only once. However, my online searches haven't yielded straightforward explanations or solutions.
Any tips or guidance on the correct approach to achieve this would be greatly appreciated!