Webページの特定の場所に1つのビューが表示される単純なember.jsアプリがあります。このjsfiddleを見てください:http://jsfiddle.net/jkkK3/9/
App = Ember.Application.create({
ready: function(){
this._super();
this.ApplicationView.create().appendTo(".content");
},
ApplicationController: Ember.Controller.extend({
}),
ApplicationView: Ember.View.extend({
templateName: 'application'
}),
Router: Ember.Router.extend({
root: Ember.Route.extend({
})
})
});
私の質問は、「ここにあるコンテンツ」要素が2回表示されるのはなぜですか。ルーターを削除すると機能しますが、Emberアプリにルーターを追加しようとしているため、これはまったくできません。赤いボックス内にアプリケーションビューを1回だけ表示するのを手伝ってもらえますか?