in Education by
Basically I need to add the script to the head of my index.html, so what I've tried is... in my nuxt.config.js head: { script: [ { type: 'text/javascript', src: 'https://a.optmnstr.com/app/js/api.min.js', data-account: 'XXXXX', data-user: 'XXXXX', async: true } ] } now obviously this isn't working since data-account and data-user is not valid, so how can I make this work?? Any help would be appreciated! Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
This was pointed out be @Andrew1325 In nuxt.js you can create a app.html file and add scripts to it, so in my case the app.html file looks like this <!DOCTYPE html> {{ HEAD }} {{ APP }} IMO this is a very easy way to include difficult scripts into your project NOTE You will need to restart your project to see the app.html changes For more information you can go nuxtjs - app template

Related questions

0 votes
    Basically I need to add the script to the head of my index.html, so what I've tried is... in ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 10, 2022 in Education by JackTerrance
0 votes
    I have two functions in my store, one that gets data by calling API and one that toggles change ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    I have created a fiddle to explain what I want : https://jsfiddle.net/silentway/aro5kq7u/3/ The ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    recently I started to work on Vue js and I want to use a javascript plugin like Isotope also I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    Tell me how to make it so that when you click on a button from a cycle with page numbers, this ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am developing a single-page-application using vue-cli3 and npm. The problem: Populating a basic integer ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am developing a single-page-application using vue-cli3 and npm. The problem: Populating a basic integer ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I have set up Vue so that I have a top level AppLayout component which just includes a Navigation Menu ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    I'm trying to get a modal to pop up on cellClick. I'm not getting any errors, but it's not ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    I'm developing a website using WordPress as my Framework. The templates are highly customized and really ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    In Intellij IDE's such as PyCharm or Idea there is an option to customize the menu and toolbar by ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Compression of images could be easily achieved using which gulp plug-in? A. gulp-minjpg B. gulp-minipng C. gulp-minjpeg D. gulp-imagemin E. gulp-minijpeg...
asked Feb 3, 2023 in Technology by JackTerrance
0 votes
    Due to EVM, people can also vote easily. (a) elder (b) salaried (c) Divyanga (d) Transgender Please answer the above question....
asked Aug 14, 2022 in Education by JackTerrance
...