Closed oneWaveAdrian closed 2 years ago
Took me a couple hours to figure out so I want to share my knowledge:
nunu.min.js
static/js
template
<template> <div> <canvas id="canvas" width="800" height="480" /> </div> </template>
head() { return { script: [ { hid: 'Nunu', src: 'assets/js/nunu.min.js', defer: true, callback: () => { Nunu.App.loadApp('assets/file.nsp', 'canvas') //add file to load in here }, }, ], }, }
You are now able to address Nunu as usual within the app.
Nunu
Hi.
Thanks a lot for sharing this knowledge.
I will add this info to the readme of the project so that everybody can find it easily.
Thanks a lot
Cheers
Took me a couple hours to figure out so I want to share my knowledge:
nunu.min.js
and place intostatic/js
folder of your nuxt instancetemplate
area where you want it, for example:You are now able to address
Nunu
as usual within the app.