Angular Command 6 CLI to create a component in a specific folder

1

Is there any way to create a component in the Angular 6 CLI specifying which folder it should be in? I searched the net and found ng g c nome-componente --module=app but this is just to specify that it will stay in app I tried to type --module=app/minha-pasta , --module=app\minha-pasta and etc to try to specify in which folder I want to be this component but nn I got it, does anyone know how to do this?

    
asked by anonymous 18.10.2018 / 00:50

1 answer

1

Try this way

ng g component minha-pasta/component --flat

The flat parameter is for generating the files without creating a new folder

    
18.10.2018 / 01:41