Inspecting Routes

Inspecting Routes

The Routes tab displays a list of your application's routes.

For the following code:

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

The Inspector displays these routes:

As you can see, the Inspector shows the routes you defined as well as the routes automatically generated by Ember.

Viewing the Current Route

The Inspector highlights the currently active routes. However, if your app has grown too large for this to be useful, you can use the Current Route Only checkbox to hide all routes except the currently active ones.

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://guides.emberjs.com/v2.13.0/ember-inspector/routes

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部