Home » vue » Access javascript object in vue.js

Access javascript object in vue.js

Posted by: admin November 26, 2021 Leave a comment


How can I access the javascript object which is available when I use browser console in vuejs component. I am using a javascript library. I added the javascript script in index.html which created the javascript object in DOM. But I am not able to access the object directly in vuejs.


so I can see the object fastspring in browser console window but when I am directly using this object in vuejs component its says fastspring is not defined. However, if I console.log this object from component I can see the object in browser console.


Use as window.<nameoftheobject>