Angular2 - Could not find an NgModule

前端 未结 6 1353
难免孤独
难免孤独 2020-12-07 05:44

Hello I\'ve just created a new project from the CLI using the simple

ng new frontend

command however once I go into my project to:

6条回答
  •  眼角桃花
    2020-12-07 06:02

    Using Angular@7 ng g c works from the root app folder. No need to change anything - just run from the base directory something like ng g c features/shopping-list/components/shopping-list-edit => CREATE src/app/features/shopping-list/components/shopping-list-edit/shopping-list-edit.component.ts (316 bytes)

提交回复
热议问题