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

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

    For me, to cut a long story short, I had inadvertently downgraded to angular-beta-16.

    The let ... syntax is ONLY valid in 2.0.0-beta.17+

    If you try the let syntax on anything below this version. You will generate this error.

    Either upgrade to angular-beta-17 or use the #item in items syntax.

提交回复
热议问题