Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Angular CLI command can I use to move a newly created component under a folder?

I have created two components in my Angular Project based on the requirement. I need to show these components under a specific folder so that I can relate it easily while working on another modules.Please let me know if there is any command which can fulfill my requirement.

Components are : user-list and user-single Folder Name: Users

enter image description here

like image 585
Muskan Avatar asked Nov 15 '18 08:11

Muskan


2 Answers

These are just some files inside a folder. In windows, you can use the move command to move them to the appropriate directory. Or you can just delete the component, and generate a new one in your required directory. Either way works!

like image 177
Nikhil Sridhar Avatar answered Nov 04 '22 06:11

Nikhil Sridhar


If you're using VSCode, you can move the folder from within Code's Explorer and it is usually smart enough to update the file imports.

like image 25
eqprog Avatar answered Nov 04 '22 07:11

eqprog