@redhendery wrote:
Hello,
I'm new to Ember and trying to wrap my head around returning multiple model data using RSVP.hash.
Let's say I have data models called:
thing1thing2thing3Returning and displaying these values on a single model is straight forward following these guides:
https://guides.emberjs.com/v2.12.0/routing/specifying-a-routes-model/#toc_multiple-modelsAm I able to have
thing1,thing2andthing3combine to make the valuethings? Which after reading this seemed to be possible.
What I am currently trying to do is define the value
thingson myroutes/things/indexwhereasthings1sits atroutes/things/thing1/indexetc...And once
thingsis defined I assume I then just call{{#each model as |things|}}in my hbs template.As mentioned, I'm new so this may not be the Ember way of doing things I keep reading about so any advice is much appreciated.
Thanks!
Posts: 2
Participants: 2