We saw here that Aurelia is able to play with webcomponents. I knew it for react or polymer components, but I’m now interested about standard customElements. In this thread, we can see a gist working with a specially bundled webcomponent. But I’m not able to create my own by following standard (ES6, link import, etc):
- If I use import, the component will mount but it will ignore the
- If I import the script in my ViewModel, I have the following error: “Uncaught TypeError: Failed to construct ‘HTMLElement’: Please use the ‘new’ operator, this DOM object constructor cannot be called as a function” but the gist show us that it’s possible.
Here would be a good place to centralize all informations about integrating a standard webcomponent in Aurelia.