Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

How to call a helper from another helper?

$
0
0

@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 call pluralize. How can I call an imported Ember.Helper.helper object from inside another helper?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles