Installing Command Angular
npm install -g @angular/cli
ng version
ng new ProjectName
cd ProjectName
ng serve
//First go in the folder where you want to add new component in angular then use given command
ng g c componentName
//or
ng generate component componentName
//If you are in root folder and want to make a sub component then
// componentName is complete path of that folder with componentName