弃用:不再支持使用defaultContainer

时间:2013-09-23 00:20:26

标签: ember.js

我只需要在视图中插入和删除视图到DOM中; 这是观点:

App.LoadingEngView = Ember.View.extend({
templateName: 'assets/loadingEng'
});

这就是我插入它的方式:

App.ApplicationController = Ember.Controller.extend({
    updateCurrentPath: function() {
        ...
        var view = App.LoadingEngView.create();
    view.appendTo('body');
        ...
    }
});

它有效,但我收到了弃用警告;我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

不应Importclimbing.LoadingEngViewApp.LoadingEngView