0
我試圖使用Ember.js與Require.js但我有一個奇怪的錯誤,當我想要做一些途徑與此代碼:App.Router不確定與Ember和要求
define([
'lib/ember/load',
"app/views/main-views",
"app/views/nav-views",
"app/views/body-views"
], function(em, MainViews, NavViews, BodyViews) {
// Create a local namespace for the app
var App = Ember.Application.create();
em.App = App;
App.Router.map(function() {
this.route("about");
});
// Export it from the module.
return App;
});
我有:cannot call map of undefined
。
也許,這是一個RequireJS配置問題?但我認爲所有數據都正確加載。
非常感謝。