1//First go in the folder where you want to add new component in angular then use given command
2ng g c componentName
3//or
4ng generate component componentName
5
6//If you are in root folder and want to make a sub component then
7// componentName is complete path of that folder with componentName
8