Git Product home page Git Product logo

Comments (3)

tomastrajan avatar tomastrajan commented on May 26, 2024

Hi @janstadt !

Yes, this is a known issue, I have to update the docs, the thing is, a placeholder custom element currently has to be unique so something like <ax-lazy-placeholder-1> (2, 3, 4 ...) Which doesn't really match that well with ngFor as I am not aware of making the tag name dynamic without stuff like innerHTML or similar DOM level approaches...

Will try to solve it in upcoming days, but feel free to find a solution a submit a PR ! 😉

from elements.

janstadt avatar janstadt commented on May 26, 2024

I'll see if i can come up with something. One thing that i tested locally so far that works is to defer the host.name = this.tag; from line 46 down into the loadElement promise (line 65 or something). Not sure if that'll jack things up or not and i feel like there must be a cleaner approach.

What it comes down to is that the TemplateRef seems to be the same for each item inside the loop and it'll just replace whichever one is last. Im gonna research a bit more on how regular structural directives handle this type of dom manipulation.

#26

from elements.

tomastrajan avatar tomastrajan commented on May 26, 2024

@janstadt I think I got it, fix coming soon :D Together with the a demo :)

from elements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.