Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@byContent not work inner loop element #25

Open
taiphamv opened this issue Jun 24, 2020 · 0 comments
Open

@byContent not work inner loop element #25

taiphamv opened this issue Jun 24, 2020 · 0 comments

Comments

@taiphamv
Copy link

taiphamv commented Jun 24, 2020

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant