Coder Social home page Coder Social logo

Comments (3)

hotforfeature avatar hotforfeature commented on June 16, 2024

Are you using webcomponentsReady() from this library? I have run into that and the crux of the problem was that the webcomponent polyfills were overriding the Zone.js Promise, which sends notifications to Angular.

That utility method will restore the global Promise after loading webcomponent polyfills.

from origami.

David-Mulder avatar David-Mulder commented on June 16, 2024

Two weeks late reply, but yeah, I was using that... though I did at one point whilst debugging this problem replace it with the "native" event, so I am somewhat confused what happened. Anyway, if that function actively does stuff then I think it's not right to call it WebComponentsReady which sounds like jQuery-era event listener. Kind of confused what's going on here though, but hey, at least it works now for me :) (outside of IE, which I don't have to officially support anyway).

from origami.

hotforfeature avatar hotforfeature commented on June 16, 2024

It's called that since it listens for the WebComponentsReady event. The only reason we have or need that kind of a callback is because webcomponents-loader.js will load polyfills asynchronously and fire that even when it's done. If you load the polyfills synchronously without using the loader, you don't need to use that function.

Gonna close this since it's working for you now.

from origami.

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.