0

我的 Ember 应用程序突然出现此错误。什么都没有显示:

DEPRECATION: Action handlers contained in an `events` object are deprecated in 
favor of putting them in an `actions` object (error on <Ember.Route:ember###>)

Error while loading route: TypeError {} 

Uncaught TypeError: Object function () {
...
}

Uncaught ReferenceError: remoteWindow is not defined 
4

1 回答 1

0

1.

可能是由于 Ember Data 在 2013 年 9 月更新到最新的 1.0 版本。所以你必须使用

this.store.find('model');

代替

App.Model.find();

并在此文档的基础上进行更多修改

2.

添加actions控制器,请参阅此 SO Q&A

于 2013-09-09T21:56:22.640 回答