-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Using "../" for parent context in {{if}} helper changes context of entire block #9263
Comments
Not supported in ember |
is this something we could support? it's really nice. |
@mmun r? |
@fivetanley We're moving away from context changing helpers so it will have no purpose in the future. Excusing keywords, the paths In theory we could support this with context changing helpers after @twokul's work on view helper context is complete, but I recommend against it. It is a code smell and block params is the Febreze. |
@mmun Never mind. I had I didn't know about this syntax. Thanks, @mmun! |
Given the following template and model:
I expect the output to be
OK!
, but instead it isNot OK!
. It appears Ember Handlebars is changing the context within the{{#if}}
helper block when../
is used to reference the parent context.JSBins:
The text was updated successfully, but these errors were encountered: