Skip to content

Commit 47cf216

Browse files
committed
readme
1 parent 82abbca commit 47cf216

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ const CustomElement = wrap(Vue, Component)
3939
window.customElements.define('my-element', CustomElement)
4040
```
4141

42+
Note it works with async components as well - the async component factory will only be called when an instance of the custom element is created on the page:
43+
44+
``` js
45+
const CustomElement = wrap(Vue, () => import(`MyComponent.vue`))
46+
47+
window.customElements.define('my-element', CustomElement)
48+
```
49+
4250
## Interface Proxying Details
4351

4452
### Props

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy