ngFor length in Angular 5

℡╲_俬逩灬. 提交于 2019-11-28 14:23:56
Jeto

As per your comments, to retrieve the count of Feed_A and Feed_B, you can make use of Array#filter and Array#length:

const feedACount = feeds.filter(feed => feed.feed_type !== '').length;
const feedBCount = feeds.length - feedACount;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!