Polymer's _template field will now accept a template-returning function in addition to a concrete HTMLTemplateElement, to allow for lazy template parsing.
Example:
Polymer({
is: 'lazy-template',
_template: () => html`<div>lazy template</div>`;
});
In addition to the previously supported way:
Polymer({
is: 'eager-template',
_template: html`<div>eager template</div>`;
});
Polymer
's_template
field will now accept a template-returning function in addition to a concreteHTMLTemplateElement
, to allow for lazy template parsing.Example:
In addition to the previously supported way:
Reference Issue
Fixes #5660