* Renders the specified template element using the supplied array of data * and returns an array of resulting elements. * @param {!Element} templateElement * @param {!Array<!JsonObject>} array * @return {!Promise<!Array<!Element>>}
(templateElement, array)
| 116 | * @return {!Promise<!Array<!Element>>} |
| 117 | */ |
| 118 | renderTemplateArray(templateElement, array) { |
| 119 | if (array.length == 0) { |
| 120 | return Promise.resolve([]); |
| 121 | } |
| 122 | return this.getImplementation_(templateElement).then((impl) => { |
| 123 | return array.map((item) => { |
| 124 | return this.render_(impl, item); |
| 125 | }); |
| 126 | }); |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Discovers the template for the specified parent and renders it using the |
no test coverage detected