How do I control where Ember.js appends the rendered application template?

前端 未结 1 1000
醉梦人生
醉梦人生 2021-01-17 22:39

I\'m trying to switch my Ember application over to using the Ember.Router but am having an issue with where the application template gets appended. When I call App.initializ

1条回答
  •  礼貌的吻别
    2021-01-17 22:56

    Set the rootElement property of the Ember.Application: http://jsfiddle.net/vAxkL/3/

    Doc: http://docs.emberjs.com/symbols/Ember.Application.html

    EDIT -- Fixed the fiddle by anchoring to the 1.0.pre version: http://jsfiddle.net/vAxkL/11/

    0 讨论(0)
提交回复
热议问题