JS
// index.js
new storefront({
// Your configuration
});
storefront.mount('<tag_name>');
Mounted Storefront tags will also mount any Storefront tags inside of them. In the following example, only <gb-container>
needs to be mounted:
HTML
<!-- index.html -->
<gb-container>
<gb-navigation></gb-navigation>
</gb-container>
JS
// index.js
new storefront({
// Your configuration
});
storefront.mount('gb-container');
JS
// index.js
new storefront({
// Your configuration
});
storefront.mount('*');