Skip to content

@byContent not work inner loop element #25

@taiphamv

Description

@taiphamv
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions