You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question is: WHEN (in which event) should I use querySelectorAll() to get my forms that are inside a second/nested template (first is "#app"). Array length is returning zero.
The text was updated successfully, but these errors were encountered:
app.addEventListener('template-bound', function() {
var template2 = app.$.template2;
var forms = template2.querySelectorAll('.teste');
console.log(template2); <== ok (HTMLTemplateElement)
console.log(forms.length); <== issue (0)
});
Please, see the following link for details:
http://stackoverflow.com/questions/28838190/how-addeventlistener-in-nested-template
The question is: WHEN (in which event) should I use querySelectorAll() to get my forms that are inside a second/nested template (first is "#app"). Array length is returning zero.
The text was updated successfully, but these errors were encountered: