Top "Ngfor" questions

The Angular NgFor directive instantiates a template once per item from an iterable.

ngFor with index as value in attribute

I have a simple ngFor loop which also keeps track of the current index. I want to store that index …

angular ngfor
*ngIf and *ngFor on same element causing error

I'm having a problem with trying to use Angular's *ngFor and *ngIf on the same element. When trying to loop …

angular ngfor angular-ng-if
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 …

angular typescript angular2-directives ngfor
how to bind img src in angular 2 in ngFor?

In my project I am getting data: image src, student name and student id. I bind student name and student …

angular ngfor
Angular2 *ngFor in select list, set active based on string from object

I'm trying using the ngFor on my select DropDownList. Have loaded in the options which should be in the dropdown. …

angular typescript select ngfor
how to use track by inside ngFor angular 2

tried every syntax i can guess couldnt make it works ! <!--- THIS WORKS FINE ---> <ion-card *ngFor="#…

angular ngfor angularjs-track-by
Error trying to diff '[object Object]' in Angular

Looks like something wrong with freight variable in HTML: Error in app/freightList.component.html:13:8 Error trying to diff '[…

angular ngfor
How to use `trackBy` with `ngFor`

I can't really understand what I should return from trackBy. Based on some examples I've seen on the web, I …

angular ngfor angularjs-track-by
How to create variable in ngFor loop?

I am trying to find out how to create a variable in an ngFor loop. I have a loop like …

angular ngfor
Angular 2+ attr.disabled is not working for div when I try to iterate ngFor loop

I'm working on a appointment booking app, where I'm displaying time slots for appointments using *ngFor to loop. html <…

angular typescript ngfor