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 7751781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:38:06+00:00 2026-06-01T11:38:06+00:00

I have an controller which is an ArrayProxy and contains some computed arrays. In

  • 0

I have an controller which is an ArrayProxy and contains some computed arrays.

In coffeescript, my controller looks like so:

MyApp.parentController = Ember.ArrayProxy.create
  content: []
  mothers: (->
    mothers = (person for person in @get("content") when person.sex == 0)
  ).property("content")
  fathers: (->
    fathers = (person for person in @get("content") when person.sex == 1)
  ).property("content")

This works fine, and when I request ‘MyApp.parentController.get(“mothers”)’ from the command line I get back the expected array.

Now I want to display that set in my document, and so I want to iterate over the list of mothers:

<div id="parent-mothers-pool">
  {{#each MyApp.parentController.mothers}}
     {{#view MyApp.ParentView contentBinding="this"}}{{/view}}
  {{/each}}
</div>

This does not work, and in fact completely hangs the applications, forever spinning and without even printing any errors to the console.

Leaving “.mother” off of the #each handlebar correctly displays all the parents, as you would expect. But putting it on borks it.

How do I iterate over this computed array?

  • 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-01T11:38:08+00:00Added an answer on June 1, 2026 at 11:38 am

    You should define a binding in the ParentMothersPool view, pointing to controller’s mothers attribute:

    MyApp.EnclosingView = Ember.View.extend
        mothersBinding: 'MyApp.parentController.mothers'
    

    Then in the template:

    {{#each mothers}}
        ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have view controller which contains a button which show the image library ,if
I have a controller which has some special authentication as it is really an
OK, so I've built a Rails app in which I have some controller which
I have a controller which is supposed to create version dependend instances (currently not
I have a controller action which I would like to call another controller action.
I''d like to have the controller which can process soemthing like http:// * /query/id
I have a controller which renders a view (~/Views/Component/Create.aspx) no problem. When this view
I have an controller which has check like that if (form[submit].ToString() == Continue) {
I have a controller which takes two arguments. I would like to call this
I have a controller which loads the view like this: class A extends Controller{

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.