Skip to main content

All Questions

Tagged with
0 votes
0 answers
171 views

How to add custom javascript in vue component

Here is the screenshot I'm not able to make a toggle work as it is written in (jquery-based) javascript. The HTML and CSS is working fine but I'm unable to get the toggle workin as it is related to (...
Makhdoom Khizar Hayat's user avatar
2 votes
2 answers
11k views

[Vue warn]: Error in nextTick: "TypeError: this.method is not a function" - Error shows only on my console but working as expected on browser

I can't tell what I'm not doing properly because everything seems to be working as expected on my browser. The problem I have is that whenever I access this component the second time and either create,...
mamaye's user avatar
  • 1,064
0 votes
1 answer
1k views

Vue-Router throws "ReferenceError: jQuery is not defined"

I'm setting up a new vue project and the router throws in the console the following error message: "[vue-router] Failed to resolve async component default: ReferenceError: jQuery is not defined [vue-...
Peter's user avatar
  • 35
6 votes
3 answers
3k views

How to load Jquery plugin/script when Vue router changes page?

I've looked around on here for answers and none of the already supplied ones work for me. here is a working demo codepen.io/figaro/pen/mBvWJa My project is simple, a one pager with Vue to handle ...
Charlie's user avatar
  • 345
2 votes
1 answer
253 views

Cloned router-link should load on child router-view but it also reloads main reouter-view

I have a problem regarding VueJS with vue-router and datatables.net. What I want to achieve is to get edit buttons in my datatable for each entery. To do this I first create an object in template for ...
Matic's user avatar
  • 31
2 votes
1 answer
2k views

VueRouter + VueJs2 + MetisMenu = Collapse error

I'm new VueJs student, and i want to make a Menu and a Second level menu into this. I'm want to use Jquery-MetisMenu, so a downloaded it, put it on my Index.html and i made a router view to the Menu. ...
Johnson's user avatar
  • 1,546
1 vote
1 answer
332 views

Vue and VueRouter creating separate instances of components

I am new to using Vue and Vue Router, but it was easy enough to pick up. Here is the problem I am having currently. I have a VueRouter set up and a component for each path. When I first load up my ...
Red's user avatar
  • 2,256
1 vote
2 answers
1k views

I use vue-router and jQuery in the template,when i switch router $(document).ready() is failure

I do not know jQuery in vue correct usage. When I refresh page, $(document).ready() has a role. But when I switch the page through vue-router, $(document).ready() does not work. <template> &...
zch's user avatar
  • 15