All ideas

How to show different widgets (different productIds) on different pages in an (Angular) Single Page Application?

Description: How to show different widgets (different productIds) on different pages in an (Angular) Single Page Application? I am able to use .shutdown() to delete my widget after destorying my view, but how to re-initialize for a different productId? I solved it by creating a clone of your widget script and adding a new feature // Manual Adjustments needed to support multiple product switching // This is needed to be able to manually re-initialize window.$sleek = []; window.initSleek = productId => { window.$sleek = new sleek(productId); }; window.shutdownSleek = () => { window.$sleek.shutdown(); }; I call shutdown() first on one page. And my own initSleek({productId})) on another. Could you add something like this as default features? I don't want to adjust your scripts.