Closed NSLog0 closed 6 years ago
It's my fault and I will close issues. The problem is I created router are separated with the layout
file and I changed to
<Router>
<Layout>
<Route exact path="/admins" component={AdminIndex} />
<Route exact path="/devices" component={DeviceIndex} />
</Layout>
</Router>
All my JQuery script working every page and no need more setting
Hi. I'm new with
webpacker
. My application used template admin that has been created by jquery which mean they have a custom functions for an effect and some process of elements.This is they code
and This is my code at
javascript/pack/application.js
The problem is when I click to other page and back to home page by clicking back link or use browser button. The
/libs/template_custom
dosen't working every function on page and effect are broken. The only way to get it to work is refresh page but is not a good ideaFor this problem I guess the DOM isn't reload or re-render which mean my scripts that imported aren't execute but it so wired because I tried to call functions from file that I imported (every file) on browser console it's work except the
/libs/template_custom
I tried this
It's not working too.
Dose anyone ever faced kind of problem like this? Help me please