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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:38:23+00:00 2026-06-10T16:38:23+00:00

I am trying to build an application with Ember.js, with routing, roles, login, logout,

  • 0

I am trying to build an application with Ember.js, with routing, roles, login, logout, and all. My problem right now is that I cannot figure out how to deal with dynamic routing.

What I need, is to be able to use one route for sidebar navigation.

When the user logs in, he/she will get to the dashboard view. Say they click Post menu on the left, then they will see a posts view. I want to deal with these in the same route, something like /:module/.

module: Ember.Route.extend({
   route: '/admin/:module/',
   doLogout: Ember.Route.transitionTo('login'),
   connectOutlets: function (router) {
      "use strict";
      router.get('applicationController').connectOutlet('sidebar', 'sidebar');
      router.get('applicationController').connectOutlet('toolbar', 'toolbar');
   }
})

This is where I need a bit of help. How does the dynamic routing work exactly? Probably the only thing I found so far is @wycats’ gist on ROuting here, but I could not figure it out from there: https://gist.github.com/2728699

  • 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-10T16:38:24+00:00Added an answer on June 10, 2026 at 4:38 pm

    Here is a stripped down piece of a dynamic routing I used:

    myroute : Em.Route.extend({
        route : '/myroute/:tid', //tid is same as index of Object
        deserialize: function(router, params) {
            return App.router.getPath('myController.content').objectAt(parseInt(params.tid));
                        //you can use some other parameters than tid and find the coresponding element
            },
        serialize: function(router, context) {
            return {
            tid: App.router.getPath('myController.content').indexOf(context)
            }
            },
        connectOutlets: function(router, context) {
            var currentController = router.get('currentController');
            currentController.connectOutlet({
                name : 'controllername',
                outletName : 'outletname',
                context: context
                }); 
            },
        index: Em.Route.extend({
            route : '/'
            })
        }),
    

    Here is a Gist explaining Connect Outlets chack current source codes for latest updates https://gist.github.com/3606155

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

Sidebar

Related Questions

im trying to build a application or a method that goes through all of
I am trying to build an application that rolls dice. Nothing fancy at all.
I'm trying to build application that could help me dial a contact just like
I'm trying to build an application from source in windows that requires some Unix
I'm trying to build an application that builds a resource file into a jar,
I'm trying to build a application that has different kinds of users, I'm using
i'm trying to build an application that every given time, will connect to a
I am trying to build an application that sends and receives responses from a
I am trying to build an application that retrieves continuous streams of xml data
I'm trying to build application that use single config passed by server as non

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.