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:
`
my content
my content
`
When I run the page to test them, the page always loading.
class ComponentItemModel extends DOMModel { @byContent('section') content; } class ComponentModel extends DOMModel { @byChildrenRefArray('component-item', ComponentItemModel) items; }
My html is as below: `my content
my content