骑驴找蚂蚁

全干工程师

Property binding ngForOf not used by any directive on an embedded template

模板中不能使用ngFor请在模块中导入CommonModule模块

@NgModule({
    imports: [
        CommonModule, // imports enable
        GoodsModule,
        MatCarouselModule,
    ],
  exports: [
      HomepageComponent,
  ],
  declarations: [
      HomepageComponent,
  ],
    // schemas: [
    //    CUSTOM_ELEMENTS_SCHEMA
    // ],
})
export class HomepageModule {}

留言