First installed angular CLI globally:
npm install @angular/cli@latest -gThen I create an angular project outside using by CLI:
ng new hello-worldCopy .angular-cli.json file into the root my project:
Modify .angular-cli.json file: "root" : "src" change to "root" : "ClientApp"
I Installed angularCli dev in my root project: cd MyProject
Then
npm install @angular/cli@latest --save-devI Went to that directory :
cd ClientApp/app/componentsThen I wrote: ng g c MyComponentName
It has shown me this screen:
