Git Product home page Git Product logo

Comments (8)

tomastrajan avatar tomastrajan commented on May 26, 2024 1

Hi @BossOz !

The details I think come from the standard web CustomEvent, you can do $event.details in your template binding ;)

from elements.

tomastrajan avatar tomastrajan commented on May 26, 2024

@BossOz could you also provide link to the implementation of the component ?

from elements.

BossOz avatar BossOz commented on May 26, 2024

I have added the implementation in the same repository.
Let me know if you need other!

from elements.

tomastrajan avatar tomastrajan commented on May 26, 2024

@BossOz one thing I can see is that the element itself does NOT need the LazyElementsModule or library at all, event looks good so its strange, please add also a button which emits other event to test it and also I would try to use it with *axLazyElement and hardcoded tag so we have a full picture of what is going on :)

from elements.

BossOz avatar BossOz commented on May 26, 2024

I put the component in the same repository for easiness but I compile it as an Angular element.

Thank you so much dude!
I will wait for your reply!

from elements.

BossOz avatar BossOz commented on May 26, 2024

Update: the event is fired using a button.

from elements.

tomastrajan avatar tomastrajan commented on May 26, 2024

@BossOz looks like a timing issue ? Wat about using set timout in ng onInit ? or use ngAfter iweInit ??

from elements.

BossOz avatar BossOz commented on May 26, 2024

Yess! The event was fixed with the setTimeout() but now I have something strange on $event object.
Doing a console.log() inside my component, the result is was I was expecting.
Doing a console.log() in the fired event the same object is under detail.

Check the picture.
consolelog

Is this correct?

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.