Emberjs -调试器在{{#each}}未加载模型时不显示错误

Emberjs - Debugger not displaying errors when {{#each}} does not load models

本文关键字:模型 显示 错误 加载 #each Emberjs 调试器      更新时间:2023-09-26

我使用{{#each}}把手来显示记录名称列表。没有显示记录名称。我没有收到任何错误和Chrome扩展余烬调试器只显示

"RecordCategories
recordCategories
<DS.RecordArray:ember923> Send to console
VpcYeoman.RecordCategoriesController Send to console
VpcYeoman.RecordCategoriesView Send to console"

在调试器的/# Routes部分中。在ember调试器的记录类别下的数据部分也没有显示任何内容。

我该如何找出这个错误是从哪里来的,如果烬调试器和控制台不承认有一个错误?当我进入Ember调试器时,我错过了什么吗?到目前为止,它已经完全无用,告诉我的信息,我大多可以在正常的Chrome开发工具

Chrome Version  = 33.0.1750.152,
Ember --version = 0.2.8, (I'm not sure why it is displaying the ember tools version instead of the ember version)
Ember Data Version = ? ( i could not find where to check the version of this)

我还应该提一下,几天前我还在用这个。我合并了另一个团队的代码,出现了这个问题

在回答你的问题,我想如何找出这个错误是从哪里来的:

  1. 在模板{{log model}}、{{log model.length}}中使用日志记录
  2. 将模型注入页面{{model}}, {{model.length}}
  3. 将模型设置为全局变量,并在控制台中使用。

Ember不报告非错误,也就是说,如果你没有数据,如果集合是空的,它不是错误。如果尝试遍历非集合,则会出现错误。