Skip to content

Hybrid iron list 2.0

Emmanuel Garcia edited this page Jan 23, 2017 · 3 revisions

Requirements to make iron-list 2.0 work with Polymer 1.0:

Templatizer

Dependency in v2:

const templatizer = new Polymer.Templatizer();
this._ctor = templatizer.templatize(this._template, {
  instanceProps: instanceProps,
  fwdHostPropToInstance: this._fwdHostPropToInstance.bind(this),
  fwdInstancePropToHost: this._fwdInstancePropToHost.bind(this)
});

Dependency in v1:

behaviors: [
 Polymer.Templatizer
]

Stamping a template in v2:

 var stampedTemplate = new this._ctor(this);

Stamping a template in v1:

 var stampedTemplate = this.stamp(null);
Clone this wiki locally