I am an Ember noob and am trying to get it to work; however I am confused about the App.initialize() method.
It throws errors (it can’t find the object App) if I use the following code:
App = Ember.Application.extend()
App.initialize()
However if I use the following code; it says initialize is being called twice.
App = Ember.Application.create()
App.initialize()
What is the best way to do this?
The
Applicationno longer provides theinitializemethod. Instead you should useApplication#deferReadinessandApplication#advanceReadinesscombined.Example extracted from Ember’s source code:
Additionally, check the sample in jsfiddle: