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.

By Rijwan Ansari

MVP, CSM, CSPO, MCP, MCTS. Sr. Software Developer. Expertise in ASP.NET MVC, Angular, AngularJs, .Net Core, C#.NET, Azure, Cognitive Services, Machine Learning, SharePoint, Azure Services, and tools, Requirement Analysis, Team Management, Pre-Sales and more. Ability to work independently and Team, handle pressure and meet commitment. Excellence Communication and adjust in any environment

2 thoughts on “Create Angular Component if more than one module matches”

Leave a Reply

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