Semantic-UI-Ember icon indicating copy to clipboard operation
Semantic-UI-Ember copied to clipboard

Compile Error: execute is not a helper

Open tinyoverflow opened this issue 8 years ago • 1 comments

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!

tinyoverflow avatar Jul 08 '17 10:07 tinyoverflow

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.

khornberg avatar Jul 10 '17 12:07 khornberg