@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:
thing1
thing2
thing3
Returning 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
,thing2
andthing3
combine to make the valuethings
? Which after reading this seemed to be possible.
What I am currently trying to do is define the value
things
on myroutes/things/index
whereasthings1
sits atroutes/things/thing1/index
etc...And once
things
is 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