I'm following an angular 2 course where the instructor navigates into the specific path where he wants to generate a component and then runs the following command:
ng generate component component-name
After he runs it, the tool generates the files inside the current directory, but when I try the same, the tool ends up generating the files at the app root folder.
In other words, if I do this:
app\my-component> ng generate component component-name
I expect the command to generate files here:
app\my-component\component-name\
component-name.component.html
component-name.component.ts
...
But instead is doing it here:
app\component-name\
component-name.component.html
component-name.component.ts
...
How can I tell ng-cli to use current path?