I have the following template:
Well, this is not well documented in the Angular doc, you can find under source code of Angular at -
https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_for_of.ts
*ngFor accepts count params.
constructor(public $implicit: T, public ngForOf: NgIterable, public index: number,public count: number) {
}
So we can get the count like -
{{count}}