home
  • Blog
1.13
  • Getting Started
  • The Object Model
  • Templates
  • Routing
  • Components
  • Controllers
  • Models
  • Testing
  • Ember Inspector
    • Installing the Inspector
    • Object Inspector
    • The View Tree
    • Inspecting Routes
    • Data Tab
    • Tackling Deprecations
    • Library Info
    • Debugging Promises
    • Inspecting the Container
    • Rendering Performance
    • Troubleshooting
  • Configuring Ember.js
  • Understanding Ember.js
  • Contributing to Ember.js
Old Guides - You are viewing the guides for Ember v1.13.0.
Go to v5.0.0

Inspecting Routes

Edit pencil

The inspector's Routes tab displays a list of all your application's routes. To view your routes, click on the "Routes" menu.

For the following code:

this.route('posts', function() {
  this.route('new');
});

The Route Tree will display these routes:

As you can see, it shows you the routes you defined, and the routes that are automatically generated for you by Ember.js.

We can use this list to figure out what Ember.js expects us to name our objects. For example, if we want to create a controller for the posts.new route, the Routes tab tells us that the controller should be called posts/new. If we want a to add a loading route for the posts resource, we can see that the route should be posts/loading.

It is also easy to see the generated URL for a specific route. In our example, posts/index will have the url /posts.

As for objects that you have defined, you can click on them to send them to the object inspector, or click on the $E button next to them to send them to the console.

Viewing the Current Route

The current route is highlighted in bold. However, as your routes grow in number, it can be quite crowded, and harder to find the current route just by looking at the font weight. A better way is to click on the Current Route Only checkbox to hide all routes except the currently active ones.

left arrow
The View Tree
Data Tab
right arrow
On this page

  • Viewing the Current Route
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2023 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue