Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't retreive collection model by id #20

Open
Jmeyering opened this issue May 27, 2015 · 0 comments
Open

Can't retreive collection model by id #20

Jmeyering opened this issue May 27, 2015 · 0 comments

Comments

@Jmeyering
Copy link
Contributor

Using this adapter Its impossible to retreive a collection model by id. For example.

I may have a model in my view that contains a Collection of products. and I want to fetch a particular one in my view.

I would expect

<li rv-text="model:products:34:name"></li>

to be the same code as

view.model.get("products").get("34").get("name");

Which returns the proper value.

Is there any where to mimic this behavior? I noticed that you're specifically returning an array when a collection is requested, so I'm not sure currently if there is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant