vue-session icon indicating copy to clipboard operation
vue-session copied to clipboard

Session not persist in external js

Open anuroopvipin opened this issue 6 years ago • 0 comments

Hello, I am using vue 2.0 with laravel 5.4 . I have seperated my vue js routes from app.js to a new file route.js and imported inside app.js. i can't access session variables inside routes.js by using the code "this.$session.getAll()" . when i trying to execute the code, it shows an error "TypeError: Cannot read property '$session' of undefined" . but the session variables can be accessed inside all components. please help me to solve the issue.

anuroopvipin avatar May 23 '18 13:05 anuroopvipin