0

I created a helper called graph-helper.coffee which will compile to js. When it compiles, it successfully creates the js copy of the helper graph-helper.js, but in my template, when I do {{graph-helper ___ ____}} the console tells me:

"Assertion Failed: A helper named "graph-helper" could not be found"
name

here is my coffee file

Ember.Helper.helper (params) ->
arg1 = parseFloat(params[0]);
arg2 = parseFloat(params[1]);

return arg1 * arg2;

1 Answers1

0

export default Ember.Helper.helper - you need to export it to default so that it will be available to use

Ember Freak
  • 12,918
  • 4
  • 24
  • 54