More than one module matches. Use skip-import option to skip importing the component into the closest module.

Command

ng g component –skipTests /admin/home –module=app

This command will create home component inside admin folder with app module.

Leave a Reply

Your email address will not be published. Required fields are marked *