Closed nomego closed 9 years ago
Automatic node finding doesn't get populated for dynamic content. See https://github.com/Polymer/polymer/issues/642
(fyi, this is a polymer bug. closing a a dupe of 642, linked above. but worth following that issue.)
We make use of dynamically fetched and populated for our SPA views but noticed a weird bug. For the template model, we fetch the data with ajax and enrich the model.
The template is based on our data model, with things like
but since the template tries to render before we get the model data, the template breaks completely. (I'm guessing this is because ourModel.header is undefined so a call for info1 breaks something somewhere, but these kind of errors would be nice to know about.. Another two bugs?)
Therefore, we designed the template like
and put everything in there, which wouldn't care when the template is bound, since it wouldn't try to render before a complete ourModel is provided. This works fine for the actual display, but we have things like
within the template. If we get to populate the template before the 'template-bound' event is fired, template.$.ourDialog will exist, but if the reverse order happens, the template.$ will not be populated.
How is this meant to be handled?