You used the syntax Ember.Helper.helper :
import Ember from 'ember'; const { Helper: { helper }, run: { schedule }, $ } = Ember; export function helperName(params, hash) { let parsedHtml = $('<div />').html(params[0])
Params is an array of all the values ββthat you pass to the helper in your template, for example {{my-helper val1 val2 val3}} params[0] is val1 , etc., a hash is an object containing all the properties that you set in the {{my-helper val1 val2 property1=myPropValue}} , and you will access it through hash.property1 .
source share