down votefavorite
<https://stackoverflow.com/questions/44139807/get-number-of-friends-from-mongodb#>
I'm making MEAN app for the first time. I managed to insert users into
MongoDB. Each user looks like:
{"name":"My
Name","country":"Italy","friends":"["5922c66b4e708e27a02b7937","2123c68b4e408e27a02b7347"]
}
Then I have users.component.html page to show those informations about
user, so I display his friends that way:
<td>{{user.userFriends}}</td>
How to get and display number of friends instead of their IDs?
Thanks for help"
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.