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

后端 未结 13 1643
耶瑟儿~
耶瑟儿~ 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:36

    In my case I made the mistake of copying *ng-for= from the docs.

    https://angular.io/guide/user-input

    Correct me if I am wrong. But it seems *ng-for= has been changed to *ngFor=

提交回复
热议问题