@Ahmad_Musaffa wrote:
The helpers which export functions are quite easy to import and use inside another helper. I can do this:
import { startCase } from '<project-name>/helpers/start-case'
;But there are some helpers which are exported only as
Ember.Helper.helper
. Normally those helpers are exported as default, so I import them like this:
import pluralize from '<project-name>/helpers/pluralize'
;But I get
Object is not a function
error when I try to callpluralize
. How can I call an importedEmber.Helper.helper
object from inside another helper?
Posts: 1
Participants: 1