Dart Documentationangular.core.domTemplateLoader

TemplateLoader class

TemplateLoader is an asynchronous access to ShadowRoot which is loaded asynchronously. It allows a Component to be notified when its ShadowRoot is ready.

class TemplateLoader {
 final async.Future<dom.ShadowRoot> _template;

 async.Future<dom.ShadowRoot> get template => _template;

 TemplateLoader(this._template);
}

Constructors

new TemplateLoader(Future<ShadowRoot> _template) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
TemplateLoader(this._template);

Properties

final Future<ShadowRoot> template #

async.Future<dom.ShadowRoot> get template => _template;