Angular exception: Can't bind to 'ngForIn' since it isn't a known native property

前端 未结 9 2343
说谎
说谎 2020-11-30 21:15

What am I doing wrong?

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

@Component({
  selector: \'conf-talks         


        
9条回答
  •  萌比男神i
    2020-11-30 21:40

    Watching this course https://app.pluralsight.com/library/courses/angular-2-getting-started-update/discussion

    The author explains that new version of JavaScript has for of and for in, the for of is to enumerate objects and the for in is to enumerate the index of the array.

提交回复
热议问题