title: How can I change the path of component generation to current path in angular-cli?
body: <p>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:</p>
  
  <pre><code>ng generate component component-name
  </code></pre>
  
  <p>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.</p>
  
  <p>In other words, if I do this: </p>
  
  <pre><code>app\my-component&gt; ng generate component component-name
  </code></pre>
  
  <p>I expect the command to generate files here:</p>
  
  <pre><code>app\my-component\component-name\
    component-name.component.html
    component-name.component.ts
    ...
  </code></pre>
  
  <p>But instead is doing it here:</p>
  
  <pre><code>app\component-name\
    component-name.component.html
    component-name.component.ts
    ...
  </code></pre>
  
  <p>How can I tell ng-cli to use current path?</p>