how to dynamically append an element to dom-if in Polymer?

前端 未结 2 1479
执笔经年
执笔经年 2021-01-19 07:09

My goal is to append an element to existing dom-if dynamically. Problem is that after appending I can see appended element in the DOM three but it never reacts

2条回答
  •  青春惊慌失措
    2021-01-19 07:23

    The template element itself will not be added to the DOM, this is the reason you can't access it using querySelector or getElementXxx

提交回复
热议问题