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

The View Tree

Edit pencil

You can inspect the current views and components rendered in your application. The View Tree shows you a tree of what is currently rendered, along with templates, controllers, and models backing each view.

Click on the View Tree menu on the left to see your views.

Inspecting Objects

You can click on any model, controller, view, or component to send them to the object inspector.

You can also click on the $E button next to them to send them to the console and assign them to the global $E variable.

Inspecting Templates

If you are using Chrome or Firefox and click on a template that has a DOM element, you will be sent to the Elements panel with that DOM element selected.

Components and Inline Views

The View Tree ignores components and inline views by default. To see them, check the Components and All Views checkboxes.

Highlighting Templates

Hovering over the view tree

When you hover over the views in the list, the templates will be highlighted in your app. For every highlighted view, you can see the template name, controller, view, and model.

Hovering over the app

If you want to highlight a template directly from your app, you can click on the magnifying glass and hover your mouse over your app. Any time your mouse passes over a template, that template will be highlighted and will show its name and its model, controller, and view names.

If you want components to be highlighted, you will need to check the Components checkbox first.

If you click on a highlighted template, you will select it and can then click on the controller, view, component, or model to send them to the object inspector.

Click on the X button to unselect a template.

Render Duration

Duration displays the time it took for a specific DOM element to be created along with all its children.

Instrumentation however adds its own delay to rendering, so the numbers you see are not an exact representation of production apps. These numbers should be used to compare rendering times, and not as a replacement for performance benchmarking.

left arrow
Object Inspector
Inspecting Routes
right arrow
On this page

  • Inspecting Objects
  • Inspecting Templates
  • Components and Inline Views
  • Highlighting Templates
  • Hovering over the view tree
  • Hovering over the app
  • Render Duration
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