Top "Ngfor" questions

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

angular: how to loop for numbers?

I have a collection of items, where each item have a rank attribute, which is a number. I wan to …

angular ngfor
Angular2 ngFor how to count the number of looping values?

I am using ngFor to loop 8 json objects and I want not only to loop the values but also I …

json angular ngfor
Angular 2: Default checked on checkbox in ngFor

I'm trying to set default value as checked on a checkbox inside my ngFor. This is my array of checkbox …

angular typescript checkbox ngfor angular2-ngmodel
Remove object from array typescript(Angular 2)

I just try to delete object from array in typescript, in angular 2.4.0, let me show the code, its my html …

html angular typescript ngfor
give active class onclick in ngFor angular 2

Hi I have unordered list and all of them have active class. I want to toggle active class when clicked …

angular ng-class ngfor
Orderby with *ngFor array

I made the following structure in my json file with Firebase Real Time Database to work on Composer and his …

javascript angular firebase-realtime-database ngfor
*ngFor how to bind each item in array to ngModel using index

===final updated== http://plnkr.co/edit/WKRBB7?p=preview since I use ngModel in a form, I must add name …

angular ngfor
How to filter items inside “ngFor” loop, based on object property string

I need to filter items inside an ngFor loop, by changing the category in a drop-down list. Therefore, when a …

string angular typescript filter ngfor
Dynamically assign element id inside ngFor

I'm trying to give a dynamically assigned id for a div inside a *ngFor. I would like the divs to …

angular ngfor
Angular 2: Callback when ngFor has finished

In Angular 1 I have written a custom directive ("repeater-ready") to use with ng-repeat to invoke a callback method when the …

javascript angularjs angular ngfor