का उद्देश्य क्या है कोई भी समझा सकता है कि कंटेनर मॉड्यूल का उद्देश्य नवीनतम एम्बर में क्या है?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>"));
मुझे लगता है कि (और आशा) इस दस्तावेज की जाएगी मतलब नहीं। मुझे पता है कि @ चचक ने इस पर काम किया है, शायद वह यहां एक स्पष्टीकरण दे सकता है। –