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

  • SEARCH
  • Home
  • 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 7740317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:44:49+00:00 2026-06-01T08:44:49+00:00

It is possible to have whitespace in an Ember.Object ‘s field name, but how

  • 0

It is possible to have whitespace in an Ember.Object‘s field name, but how to render its value?

The following JSFiddle illustrates my aim: http://jsfiddle.net/MikeAski/aTpz4/

Any idea?

  • 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-01T08:44:50+00:00Added an answer on June 1, 2026 at 8:44 am

    I think this is not possible, since for Handlebars it looks like you want to use a helper named my.

    Also in your example an error Uncaught Error: Handlebars error: Could not find property 'my' on object <.MyView:ember147> is thrown.

    You could write your own Handlebars helper, see http://jsfiddle.net/pangratz666/KAsNN/

    Handlebars:

    <script type="text/x-handlebars" data-template-name="my-template">
        This does work: {{echo "myField"}}
        This does work: {{echo "my field"}}
    </script>
    

    JavaScript:​

    Ember.Handlebars.registerHelper('echo', function(propertyName, options) {
        return Ember.getPath(options.contexts[0], propertyName);
    });
    

    The helper above is not bindings aware. There is a Pull Request for this: https://github.com/emberjs/ember.js/pull/615

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have unobtrusive validation to make a field required but only
I have the following possible string patterns (whitespace is variable): 2-4 Jun 8-11 Jun
Is it possible have two projects with the same name in flex builder? Here
Possible Duplicate: How to trim whitespace from bash variable? I have searched and attempted
Possible Duplicate: Replace multiple whitespaces with single whitespace in JavaScript string I have used
i have written the following code but it is giving parse error . here
I have the following possible strings that I need to turn into arrays so
is possible to have a separator between elements of a GridView? Thanks
Is it possible to have a many to many relationship between two tables, and
Is it possible to have a free iPhone app that has say an initial

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.