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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:33:25+00:00 2026-06-14T08:33:25+00:00

I got a strange Problem here. I want to catch an Action inside a

  • 0

I got a strange Problem here. I want to catch an Action inside a rendered Ember.CollectionView, in the “ParentView”.

{{#collection contentBinding="view.content"}}
    <a href="#" {{action insideCollection target="parentView">{{view.content}}</a>
{{/collection}}

but the parentView inside a CollectionView is still a Subclass of a View, and not the ParentView itself (in my Example the ApplicationView). So, how can i catch the Handlebars-Action inside my ApplicationView?

Here is a fiddle to see the Problem by yourself: http://jsfiddle.net/smgMt/3/

Any Ideas?

  • 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-14T08:33:27+00:00Added an answer on June 14, 2026 at 8:33 am

    When using the collection helper, there is an implicit view created for each content in the block. So here, if you want to access the ApplicationView, you have to call twice parentView.

    The second hint is you must prefix this chain by the keyword view to access the current view properties.

    <script type="text/x-handlebars" data-template-name="application">
      <h1>Hello from Ember.js</h1>
      <button {{action test target="view"}}>Click to Test</button>
      {{#collection contentBinding="view.content" tagName="ul"}}
        <a href="#" {{action insideAction target="parentView.parentView"}}>{{view.content}}</a>
     {{/collection}}
    </script>​
    

    http://jsfiddle.net/smgMt/14/

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

Sidebar

Related Questions

I've got a quite strange problem here. I'm calling some simple code via Ajax.Updater:
Ok, I got a strange one here and I want to know if any
I've got a strange problem here. I have a class that I'll call MainView
I've got a strange problem here. I have a winforms panel which programatically has
Bit of a strange problem here... I've got an update query that isn't working,
I've got a strange problem here, and i'm sure it's just something small. I
I've got a strange problem here regarding sorting of a WPF DataGrid (System.Windows.Controls.DataGrid in
I've got a strange problem here. Assume that I have a class with some
I got a strange problem here: i have a potential large (as in up
I have got a strange and rare problem here. I am using NSTimer event

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.