diff --git a/demo/index.html b/demo/index.html index 0575f9c..13f0551 100644 --- a/demo/index.html +++ b/demo/index.html @@ -39,10 +39,13 @@ diff --git a/demo/index.md b/demo/index.md index c560f01..eaac1be 100644 --- a/demo/index.md +++ b/demo/index.md @@ -296,8 +296,10 @@ There are two important parts of every Auro component. The { - // alias definition - if (!customElements.get(name)) { - customElements.define(name, class extends AuroCarousel {}); - } -} - -export { registerComponent } +RuntimeUtils.default.prototype.registerComponent('custom-carousel', AuroCarousel);