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 @byContent() does not work inner loop element:
I implement as example codes: class ComponentItemModel extends DOMModel { @byContent('section') content; } class ComponentModel extends DOMModel { @byChildrenRefArray('component-item', ComponentItemModel) items; }
My html is as below: <component size="L"> <component-item> <section> <p>my content</p> </section> </component-item> <component-item> <section> <p>my content</p> </section> </component-item> </component>
When I run the page to test them, the page always loading.
The text was updated successfully, but these errors were encountered:
I implement as example codes:
class ComponentItemModel extends DOMModel { @byContent('section') content; } class ComponentModel extends DOMModel { @byChildrenRefArray('component-item', ComponentItemModel) items; }
My html is as below:
<component size="L"> <component-item> <section> <p>my content</p> </section> </component-item> <component-item> <section> <p>my content</p> </section> </component-item> </component>
The text was updated successfully, but these errors were encountered: