@invitation/embed
Advanced tools
Comparing version 0.0.9 to 1.0.0
{ | ||
"name": "@invitation/embed", | ||
"version": "0.0.9", | ||
"version": "1.0.0", | ||
"description": "A module that enables dynamic embeds and widgets from Invitation 🎁 https://invitation.codes", | ||
@@ -5,0 +5,0 @@ "homepage": "https://invitation.codes", |
@@ -21,9 +21,11 @@ # Invitation codes 🔗 embed | ||
In your app, anywhere, initialize the embed library: | ||
In your app, anywhere, initialize the library: | ||
``` | ||
import embed from '@invitation/embed'; | ||
embed(); //loads the lib | ||
embed(); // Initialize web-components library | ||
``` | ||
This function only need to be called once. Once in memory, the library will render all `<invitation-something>` components it encounters in future templates. | ||
With a custom locale: | ||
@@ -48,3 +50,3 @@ | ||
Simply add this script tag into your website header: | ||
Simply add this script tag into your website `<head>`: | ||
@@ -51,0 +53,0 @@ ``` |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4421
1
92