title: How to create Component inside folder in Angular 6
body: <p>I've attached folder hierarchy of my angular project below:  </p>
  
  <p><a href="https://i.stack.imgur.com/qLg7A.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qLg7A.jpg" alt="enter image description here"></a>  </p>
  
  <p>As you can here. My app folder is under _component folder. also, my other ts files like auth is under _auth folder, interfaces are inside _model folder etc.</p>
  
  <p>You when I execute <code>ng g c componentName</code> command, it creates app folder in root and create component inside it. so I have to go to particular folder and then I need to execute command.  </p>
  
  <p><a href="https://i.stack.imgur.com/Xbzqa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xbzqa.jpg" alt="enter image description here"></a></p>
  
  <p>My question is, is there anyway that I can create component direct from my root folder. like <code>ng g c _component/MycomponentName</code></p>
  
  <p>Updated:<br>
  I've also tried other ways to create it like below:<br>
  <a href="https://i.stack.imgur.com/244Ea.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/244Ea.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/uDnC2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uDnC2.jpg" alt="enter image description here"></a></p>