DEV Community

Discussion on: Introducing Angular Mini Blog Series - Part 1

Collapse
 
muncey profile image
muncey • Edited

Very good first post about Angular, just a quick question when you set up your components will you use a folder per component? Or will you put all your components in a single folder?

Collapse
 
shreyapd06 profile image
Shreya Prasad • Edited

Hi, that's a great question! So yes we use a folder per component. When we use Angular CLI for generating components, you will notice that a folder is automatically created. Alternatively, you can also manually create a component. I hope that clarifies your doubt!

Collapse
 
muncey profile image
muncey

I find after a while of using angular I found it was easier to manually create the components and gave me a little more control over the organisation of my projects.

Collapse
 
ionellupu profile image
Ionel Cristian Lupu

You can also have one file per component with all the CSS HTML and CSS just like in React or Vue