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

Compile Error: execute is not a helper #196

Open
tinyoverflow opened this issue Jul 8, 2017 · 1 comment
Open

Compile Error: execute is not a helper #196

tinyoverflow opened this issue Jul 8, 2017 · 1 comment

Comments

@tinyoverflow
Copy link

Hey,

when installing Semantic-UI-Ember to a new ember project and generating these stuff with the ember generate semantic-ui-ember command, I get this error in my browser console when using actions in components:
Compile Error: execute is not a helper

I've tried copying & pasting code examples from the docs: Same error.
After googling a bit, I found an issue wich is from 2016 where the last reply says, that we should use
onclick="{{action (action execute 'open' 1)}}"
instead of
onclick="{{action (execute 'open' 1)}}"

But doesn't that mean, that the docs are incorrect?
The first thing works, the second creates the error.

Thanks!

@khornberg
Copy link
Contributor

onclick="{{action (execute 'open' 1)}}" assumes that execute is a handlebars helper like mut or concat.

Compile Error: execute is not a helper is correct. execute is not a helper but a yielded function.

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