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

Lookup helper won't work with block parameters #1317

Closed
steinerkelvin opened this issue Feb 27, 2017 · 2 comments
Closed

Lookup helper won't work with block parameters #1317

steinerkelvin opened this issue Feb 27, 2017 · 2 comments

Comments

@steinerkelvin
Copy link

steinerkelvin commented Feb 27, 2017

{{#each names as |name id|}}
  {{name}} <br>
  {{lookup . 'name'}} <br>
{{/each}}

works for {{name}} but not for {{lookup . 'name'}}

jsfiddle

I intend to use this with dinamic partials:
{{> (lookup . 'name') }}

@steinerkelvin steinerkelvin changed the title Lookup wotn work with block parameters Lookup helper won't work with block parameters Feb 27, 2017
@nknapp
Copy link
Collaborator

nknapp commented Mar 4, 2017

I can't say if this is supposed to work, since the block parameters are not part of the input object.
I think this needs to be specified (#1277, "We need a spec")

@nknapp
Copy link
Collaborator

nknapp commented Mar 9, 2017

Do you have to use "lookup" to solve your problem. I think you could just use {{> (name)}} like in https://jsfiddle.net/vva7musq/9/

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

2 participants