[Vuejs]-When I change router-link not working jquery plugins, but when I refresh it's working

0๐Ÿ‘

I have a similar issue with angular with using jquery plugins. As vue and angular are SPA(Single Page Application).

The reasoning for this is when the whole document loads, jquery onDocument.ready() will then kick off โ€“ enabling event handlers to listen and attached to HTML DOMs.

Using SPA Routers to navigate through your application will not load again everything. So jquery cannot attach listeners to your newly rendered views.

Find a way to manually initialize those jquery plugins.

Leave a comment