vue-session
vue-session copied to clipboard
Session not persist in external js
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.