That makes total sense @saurabhdaware . Thanks for the explanation! 🌻
I'll do some more research to see if I can get this working in vue / nuxt component pages!
Here's how to use your widget in Nuxt, for future reference:
@kiyuku1 's answer would work, but here's the complete solution that would work if we want to include a js (or mjs) file in ONE nuxt.js page only, instead of globally:
<template> <div class="container"> <div> <dev-widget data-username="saurabhdaware"></dev-widget> </div> </div> </template> <script> export default { layout: "default", head: { script: [
Oh I did not know Nuxt required separate handling. Thank you so much 🌻
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That makes total sense @saurabhdaware . Thanks for the explanation! 🌻
I'll do some more research to see if I can get this working in vue / nuxt component pages!
Here's how to use your widget in Nuxt, for future reference:
answer re: Include external javascript file in a nuxt.js page
@kiyuku1 's answer would work, but here's the complete solution that would work if we want to include a js (or mjs) file in ONE nuxt.js page only, instead of globally:
…Oh I did not know Nuxt required separate handling. Thank you so much 🌻