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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:58:34+00:00 2026-06-17T00:58:34+00:00

What I have so far: App = Ember.Application.create({ LOG_TRANSITIONS: true }); App.Router.map(function(match){ match(‘/’).to(‘application’); match(‘/edit’).to(‘edit’);

  • 0

What I have so far:

App = Ember.Application.create({
    LOG_TRANSITIONS: true
});


App.Router.map(function(match){
    match('/').to('application');
    match('/edit').to('edit');
});


App.ApplicationRoute = Ember.Route.extend({
    redirect: function() {
        this.transitionTo('edit');
    },
    events: {
        startEdit: function( context ){
            this.transitionTo( 'edit' );
        }
    }
})

App.EditRoute = Ember.Route.extend({
    init: function(){
        this._super()
        console.log('EditRoute')
    },
});

Handlebars:

<script type="text/x-handlebars" data-template-name = 'application'>
    Hello World
    {{ outlet main }} 
</script>

<script type="text/x-handlebars" data-template-name = 'edit'>
    <div class = 'edit-background'> Edit State: {{ title }} </div>
</script>

I have four questions:

  1. When I open the application it just remains in the home page, is the redirectTo hook suppose to immediately redirect you to another state?

  2. In addition, I have this events hash in AplicationRoute per suggestion from here: How to programmatically transition between routes using Ember.js' new Router. but I read through the answers and still am not sure how you are supposed to use it.

  3. How do I test the router on the console? before you could navigate between the states by calling transitionTo commands, what do I do now?

  4. For some odd reason, my application template seem to rendered twice, as in there are two ‘Hello World’ up there, and when try to add something like: <li>{{#linkTo edit}}edit{{/linkTo}}</li>

I get this error:

'Uncaught TypeError: Cannot read property 'container' of undefined   --  ember.js:2223' 
  • 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-17T00:58:36+00:00Added an answer on June 17, 2026 at 12:58 am

    This is how you would initially load the editView/route/template on application start up:

    Router

    App.Router.map(function(match){
      match('/').to('application',function(match){
        match('/').to('edit')
      })
    })
    

    ApplicationTemplate

    <script type="text/x-handlebars" data-template-name="application">
        {{outlet}}
    </script>
    

    EditTemplate

    <script type="text/x-handlebars" data-template-name="edit">
        I am embedded! 
    </script>
    

    EditRoute

    EditRoute = Ember.Route.extend({
      renderTemplates:function () {
          this.render('edit', {
          into:'application'
       });
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the javascript module pattern, and have this so far: var APP; if(APP
I use Mercurial/TortoiseHg as my source control. So far I have a single app
I have an app that so far consists of two Activities: The Main Menu
I have a Rails app and trying to make a remote form, so far
I have a great app for capturing shoutcast streams :-) . So far, it
I have an application that gets installed with a Wise installer (EDIT: Wise creates
I've been writing my first android app and so far have just been building
I have a upload function in my app. this function uploads an excel file
This is what I have so far.. it just starts when the application is
I have an app that uses UIViewControllers for everything pretty much. So far I

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.