I use a service function in my Angular 4 app to retrieve data from the MongoDB/Express.js backend:
getArticles() {
return this.http.get('api/articles').map(res => res.json());
}
How do I get the length of the received array?
Update:
I should have clarified, I needed to find a length of an Observable array.