我在 Ember 中创建了以下路线:
this.resource('password_reset', { path: '/password_reset' }, function() {
this.route("request");
this.route("claim");
});
Ember 调试器——我喜欢顺便说一句——向我展示了以下结果:
到目前为止,我已经创建了两个模板:
- /templates/password_reset.hbs
- /templates/password_reset/index.hbs
当我转到 URL 时,http://my.server.com/#/password_reset
我希望——根据调试器告诉我的内容——password_reset/index
使用上面列出的第二个模板(又名,),但实际上它使用了第一个模板。做什么?有人愿意解开这个谜团吗?