I have being converting static html pages to vuejs and I have this file called printable.html that receives variables from url and extracting it using simple jquery. I don't want to convert this file to a vueJs instead, after @click="printPage" I would like to open a new tab that can display printable.html page with url something like this. http://localhost:8080/printable.html?diff=5&carCost=125.0
printPage() {
if(!this.active_el) {
// show error
} else {
//hide error
console.log(this.selectedCar[0].Name)
let url =
this.buildUrl('printable.html', 'diff', this.possibleReservationData.totalDays) +
this.buildUrl('', 'carCost', this.carPrice) +
this.buildUrl('', 'deposite', this.deposit) +
this.buildUrl('', 'subTotal', this.subTotal) +;
window.open(url, '_blank');
}
},
I also tried to use router
import printable from '../../views/printable.html';
const router = createRouter({
history: createWebHistory(),
routes: [
{path: '/', name: 'Home', component: HomeView},
{path: '/printable', name: 'printable', component: printable}
]
});
but obviously this didn't work.
can anyone advice me how to do this, is that even possilbe? Just don't want to go through the hassle and convert something into vueJs that doesn't need to be converted.