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

What am I doing wrong? import {bootstrap, Component} from ‘angular2/angular2’ @Component({ selector: ‘conf-talks’, template: `<div *ngFor=”talk of talks”> {{talk.title}} by {{talk.speaker}} <p>{{talk.description}} </div>` }) class ConfTalks { talks = [ {title: ‘t1’, speaker: ‘Brian’, description: ‘talk 1’}, {title: ‘t2’, speaker: ‘Julie’, description: ‘talk 2’}]; } @Component({ selector: ‘my-app’, directives: [ConfTalks], template: ‘<conf-talks></conf-talks>’ }) class App … Read more

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

What am I doing wrong? import {bootstrap, Component} from ‘angular2/angular2’ @Component({ selector: ‘conf-talks’, template: `<div *ngFor=”let talk in talks”> {{talk.title}} by {{talk.speaker}} <p>{{talk.description}} </div>` }) class ConfTalks { talks = [ {title: ‘t1’, speaker: ‘Brian’, description: ‘talk 1’}, {title: ‘t2’, speaker: ‘Julie’, description: ‘talk 2’}]; } @Component({ selector: ‘my-app’, directives: [ConfTalks], template: ‘<conf-talks></conf-talks>’ }) class … Read more