-
Notifications
You must be signed in to change notification settings - Fork 3
RaguDom: Configuring the client
Maniero edited this page Sep 14, 2020
·
4 revisions
RaguDOM aims to fetch remote components from Ragu Server.
npm install ragu-dom
All you need to do is to register the ragu custom element:
const {registerRaguComponent} = require("ragu-dom"); registerRaguComponent();
The script above required transpilation. Take a look at the example repository: https://github.com/carlosmaniero/ragu-pokemon-ecommerce
You can just render a remote ragu component by adding this code fragment at you HTML.
<ragu-component src="https://ragu-cart-vuejs.herokuapp.com/components/cart"></ragu-component>