Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8509309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:23:58+00:00 2026-06-11T03:23:58+00:00

I try to call a registered handlebar helper inside a {{#each}} loop. Unfortunately Ember.js

  • 0

I try to call a registered handlebar helper inside a {{#each}} loop. Unfortunately Ember.js complains because it tries to resolve the helper as a property of the controller rather than a helper.

Handlebars.registerHelper('testHelper', function(name) {
    return 'foo: ' + name
});

(names and content are just dummy values to show the example)

{{#each entry in App.testController}}
   <div>{{{testHelper entry.name}}}</div>
{{/each}}

The error that the Ember.js prints is:

Uncaught Error:  Handlebars error: Could not find property 'testHelper' on object <App.testController:ember254>.

How do I need to call the registered helper so that it gets recognized?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:23:59+00:00Added an answer on June 11, 2026 at 3:23 am

    Got it running, either with this solution,

    Javascript

    Handlebars.registerHelper('testHelper', function(property, options) {
      return 'foo: ' + Ember.get(options.data.view.content, property);
    });
    

    Handlebars template

    <script type="text/x-handlebars" data-template-name='app-view'>
      <ul>
      {{#each entry in content}}
        <li>{{testHelper name}}</li>
      {{/each}}
      </ul>
    </script>​
    

    Or even better, with this one:

    Javascript

    Handlebars.registerHelper('testHelper', function(property) {
      return 'foo: ' + Ember.get(this, property);
    });
    

    Handlebars template

    <script type="text/x-handlebars" data-template-name='app-view'>
      <ul>
      {{#each entry in content}}
        {{#with entry}}
          <li>{{testHelper name}}</li>
        {{/with}}
      {{/each}}
      </ul>
    </script>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to call an API. I just want use active resource so I
I try to call a function which checks a rule and if the rule
I try to call a function which passed as function pointer with no argument,
I try to call the esriRegAsm.exe with arguments from a C# program. The purpose
When I try to call this simple function in a CFC, with the proper
when I try to call paper.queue(fx).length I get object not supported error. May i
When I try to call System.IO.File.Encrypt() on an existing file, it throws a generic
whenever I try to call my ejb from a client, I get this error
When I try to call any GL15 function in lwjgl I get A NullPointerException.
for some reason when I try to call CocoaAsyncSocket's onSocket:didReadData:withTag method, it's failing and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.