Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Ember Data: RSVP Question

$
0
0

@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-models

Am I able to have thing1, thing2 and thing3 combine to make the value things? Which after reading this seemed to be possible.

What I am currently trying to do is define the value things on my routes/things/index whereas things1 sits at routes/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

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles