コンテナモジュールの目的が最新のEmberに何であるか説明できる人はいますか?Ember.Containerの目的は何ですか
その使用の例は、セットアップ中にこの試験の開始において:
module("Ember.View - handlebars integration", {
setup: function() {
Ember.lookup = lookup = { Ember: Ember };
lookup.TemplateTests = TemplateTests = Ember.Namespace.create();
container = new Ember.Container();
container.optionsForType('template', { instantiate: false });
}
test("template view should call the function of the associated template", function() {
container.register('template', 'testTemplate', Ember.Handlebars.compile("<h1 id='twas-called'>template was called</h1>"));
パブリックAPIを意味するものではない
これは文書化されます。 @tchakがこれに取り組んできたことは分かっていますが、おそらく彼はここで説明することができます。 –