Exception: Can't bind to 'ngFor' since it isn't a known native property

后端 未结 13 1644
耶瑟儿~
耶瑟儿~ 2020-12-12 16:35

What am I doing wrong?

import {bootstrap, Component} from \'angular2/angular2\'

@Component({
  selector: \'conf-talks\',
  template: `
13条回答
  •  盖世英雄少女心
    2020-12-12 17:14

    In my case, the module containing the component using the *ngFor resulting in this error, was not included in the app.module.ts. Including it there in the imports array resolved the issue for me.

提交回复
热议问题