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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:42:36+00:00 2026-06-17T08:42:36+00:00

In the old V1 router, all controllers were injected into the router, so it

  • 0

In the old V1 router, all controllers were injected into the router, so it was possible to do:

foo = App.get('router').get('applicationController').get('bar');

In the new V2 router, I can’t seem to even do:

router = App.get('router')

Has this changed?

Has the intended design pattern changed? Was I doing it wrong all along?

  • 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-17T08:42:37+00:00Added an answer on June 17, 2026 at 8:42 am

    Today, you can get access to controllers from your routes (and route actions) via:

    this.controllerFor('posts')
    

    In your controllers, you declare dependencies on other controllers:

    App.Post = Ember.ObjectController.extend({
      needs: ['posts']
    });
    

    And then, inside your controller, you can also use this.controllerFor.

    FYI, We plan to make this.get(‘controllers.posts’) work inside of controllers that use needs, which would make using dependent controllers inside of your templates straight forward.

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

Sidebar

Related Questions

I'm porting an existing app to the new router api and can't find an
From what I can understand, counting-to-infinity occurs when one router feeds another old information,
All out of the sudden, even after replacing my app I get an error
I'm trying to migrate my app to the new emberjs routing API. With old
I'm setting up an old wireless router for a friend which uses WEP (Yeah,
Scenario: old legacy code in rpg have to consume data from a new web
The old JS SDK had a function called FB.ensureInit. The new SDK does not
I'm migrating a complex old website to a new one coded with codeigniter and
I've switched my codeigniter website to a new webhost recently and now all links
I've bought an SSL certificate (Geotrust chain, RapidSSL) and can't seem to deploy it

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.