I use ngFor to loop 8 json objects and I want to not only encode the values, but also count the number of loops and display the number.
For example, if json is equal
Content:{
0:"Content1",
1:"Content2",
2:"Content3",
3:"Content4",
4:"Content5",
5:"Content6",
6:"Content7",
7:"Content8"
}
Not only do I want to display the loop values for "Content", but I also want to calculate them so that the result can be lower.
1 <- counting
Content1
2
Content2
3
Content3
4
Content4
5
Content5
6
Content6
7
Content7
8
Content8
source
share