irurzo
07/25/2021, 10:20 PMbattk
07/25/2021, 10:35 PMbattk
07/25/2021, 10:36 PMirurzo
07/25/2021, 10:48 PMbattk
07/25/2021, 11:01 PMmichoel
07/25/2021, 11:34 PMmichoel
07/25/2021, 11:34 PMbattk
07/25/2021, 11:35 PMirurzo
07/26/2021, 1:05 AMBibek Shrestha
07/26/2021, 4:03 PMmichoel
07/27/2021, 12:52 AMdefine([], () => (name) => `
<script src="<https://unpkg.com/vue@3.0.11/dist/vue.global.prod.js>"></script>
<style>
/* your styles here */
</style>
<div id="vue-app">
<!-- app will be injected here -->
</div>
<script type="x-template" id="vue-app-template">
<!-- your vue template here -->
<div>
<h1>Hello {name}!<h1>
</div>
</script>
<script>
const VueApp = {
template: "#vue-app-template",
data() {
return {
name: ${name},
};
}
};
Vue.createApp(VueApp).mount("#vue-app");
</script>
`);
Haven't tested the code so hopefully if it doesn't run it's enough to give you the idea. For a full blown SPA with all the Vue.js dev tooling have a look at this project https://github.com/michoelchaikin/netsuite-mapreduce-util
Lastly NetSuite is working on native SPA support coming sometime
https://static.rainfocus.com/oracle/sw19/sess/15440757164520014GNg/PDFPF%20/Dev1306_TUES_1553540072892001ZwOR.pdfBibek Shrestha
07/27/2021, 12:52 PMSimonC
08/07/2021, 3:04 PM