Two basic examples of reusing Stencil-based web component in jQuery and Angular environments.
Demo app for Przeprogramowani.pl YouTube channel.
- Build stencil components by opening
reusable-avatar
and runningnpm install && npm run build
- Use npm link to add it to global registry - run
npm link
inreusable-avatar
directory - For both
jquery-demo
andangular-demo
executenpm link reusable-avatar
to link stencil component
- Run
npm install && npm start
in jquery-demo to run jquery app and live-server hosting fake data - Run
npm install && npm start
in angular-demo to run angular app (make sure live-server is already started)