Get length of array in ngFor after pipes transformation

前端 未结 4 2317
走了就别回头了
走了就别回头了 2021-02-19 10:57

I have the following template:

4条回答
  •  没有蜡笔的小新
    2021-02-19 11:39

    Another solution could be the following

    Here is the length of my ngFor : {{l}}

    Plunker Example

    See also

    • https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_for_of.ts#L15-L17

提交回复
热议问题