When I try to initialize my ember App with an ArrayController I got an issue but only when ember-data is added to the project. Here’s a quick example at http://jsfiddle.net/ySmZr/2/
App = Em.Application.create();
App.customerController = Em.ArrayController.create({});
App.initialize();
return the following error :
Uncaught TypeError: Cannot call method 'get' of undefined (ember-data-latest.js:3693)
Without ember-data I got no error. I looked everywhere and I just can’t find why ember is acting like this… Any idead ? Thanks !
When calling initialize() you must set Router stuff. See this
From documentation:
There are 2 solutions:
capabilities