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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:51:15+00:00 2026-06-14T10:51:15+00:00

While connectOutlet(basename) automatically creates an instance of BasenameController , I was wondering if there’s

  • 0

While connectOutlet("basename") automatically creates an instance of BasenameController, I was wondering if there’s a way to do the same using the {{view}}-helper.

I have tried several things I’ve seen in examples, but non of them seem to work:

{{view controllerBinding=App.BasenameController}}

{{view controllerBinding=App.basenameController}}

{{view controllerBinding="App.BasenameController"}}

{{view controllerBinding="App.basenameController"}}

I have also tried to do the same using controller instead of controllerBinding, unfortunately without success, and I was also unable to find out where exactly the difference is between the two of them.

Does anybody know how to achieve my goal?

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

    You probably want to use an outlet. The connectOutlet/outlet functions are meant for rending other controller/view pairs.

    Lets say we have a person view, but inside that view we want to have another controller/view pair. For this, we need to use a named outlet, our template would look like this.

    Person View!
    {{name}} = the person's name!
    {{controller}} = PersonController!
    {{outlet other}} = our outlet
    

    Then inside the router when you want to attach another controller/view to that outlet you can simple use connectOutlet on the personController.

    router.get('personController').connectOutlet('other', 'other');
    

    That will wire OtherController and OtherView together and display them in your template. The first param is the outlet name, the 2nd is the controller/view.

    This allows you to easily swap different controllers and views onto that outlet. For example, using a different connectOutlet api, we could

    router.get('personController').connectOutlet({
     outletName: 'other',
     controller: router.get('carsController'),
     viewClass: App.CarsView
    });
    

    …

    Btw, to answer you original question. You can get access to other controllers from your view by doing this: {{view controllerBinding="controller.target.otherController"}}. Every controller will have a target property that points back to the router. However, I do not recommend using this code. It’s brittle, hard to test, hard to debug, and will come back and bite you in the future.

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

Sidebar

Related Questions

While deveoping a site (using Forms authentication and InProc sessionstate) a frequently run into
While developing an application using gwt in ecliplse crashed. Now the server is running
While writing a simple game using SBCL, CL-OPENGL, and Lispbuilder-SDL, I can across a
While editing some records in my PostgreSQL database using sql in the terminal (in
While there is a lot of good resources on traversing the DOM with jQuery
While working in a project written by some one else ,there's a Function which
while using document cookie <script typ=text/javascript> document.domain=example.com; </script> I got an error.i don't know
While trying to open an excel using ApachePOI I get org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open the
while i am using from pygooglechart import PieChart3D google app engne is reporting No
While I grew up using MSWindows, I transitioned to my much-loved Mac years ago.

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.