Inconsistency with Angular expressions


For some reason in my events.html

the function getEvents() is called an it does:

ng-repeat="event in events ... "


which produces the appropriate text, but in my event_details.html the function getEvent() is called as it lists particular details.

<li class="list-group-item">Venue: {{}}</li>

produces absolutely nothing.


<li class="list-group-item">Name: {{event.venue}}</li>

produces the venueID

I’d greatly appreciate some help!


Please provide a Minimal, Complete, and Verifiable example that reproduces issue
If event.venue renders text, how can there even be a property
That’s what I’m really confused about. In events.html the event.venue is an object with venueID as a property, whilst in event_details event.venue Is the venueID.
– Sid Jones
1 hour ago
Sounds like different data sources for separate instances
Terribly sorry. I forgot to populate the venue in the eventSchema. I’m really new to MEAN stack. Once again, apologies.
– Sid Jones
1 hour ago