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

The Archive Base Latest Questions

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

Template controlled by someParentController {{#each post in content}} {{view App.PostView postBinding=post}} {{/each}} Setting an

  • 0

Template controlled by someParentController

{{#each post in content}}
{{view App.PostView postBinding="post"}}
{{/each}}

Setting an instance of the controller on the view

App.PostView = Ember.View.extend
  post: null # set when the view is created
  controller: App.PostController.create()
  templateName: 'post.handlebars'

Now my view instance has the context instead of my controller instance. Is there a cleverer way to handle this? I would use an {{outlet}} if I was routing to a particular post, but the main template is displaying all posts. I want each to post to have its own controller though. It doesn’t seem right to create an outlet for every post since you cannot namespace a dynamic number of outlets.

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

    You can bypass the view entirely by using the following syntax on your action helpers in post.handlebars.

    {{action someMethodOnController context="post" target="controller"}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the Model-View-Controller template while writing my Web App. The problem
info: iOS5, xcode4.3.2, iphone5 Create tab view controller application from xcode template wizard. Following
In my solution at each selected elements on list JavaScript $.get template trought controller.
I have 2 views controlled by a tab bar view controller created by the
My controller is: /** * @Route(/product/submit, name=product_submit) * @Template(GaorenVendorsBundle:Product:index.html.twig) */ public function submitAction() {
I've created a new Pylons application and added a controller (main.py) with a template
I created a tab bar application from the template and added a navigation controller
I have a simple class called Applicant. I'm trying to add a template controller
I'm trying to add a new controller with the following template specified: MvcScaffolding: Controller
If I want to change the default controller template created by scaffold in Rails

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.