Firebase (Backfire) がバックボーン アプリにデータを提供しているときに、読み込み中のメッセージ/アイコンを挿入しようとしていますが、現在はうまく機能しています。小さな例のフィドルを次に示します。 /
データをレンダリングするときに HTML 要素を追加および削除しようとしましたが、うまくいきません:
render: function() {
this.$el.html("<i class='icon-spin icon-refresh loading-icon' />");
this.collection.each(function( item ){
this.renderBook( item );
}, this);
this.$el.find(".loading-icon").remove();
}
私の目標は、すべてがレンダリングされた後にのみ、すべてのデータを表示することです。