daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. export default {
  3.   name: 'MyRouteComponent',
  4.   permissions(store, to, from) {
  5.     // request permissions data
  6.     // return a promise to resolve or reject navigation
  7.   },
  8.   criticalData(store, to, from) {
  9.     // request critical data
  10.     // return a promise so that data can finish loading during Server Request lifecycle
  11.   },
  12.   lazyData (store, to, from) {
  13.      // request lazy data
  14.      // no need to return a promise because nothing should wait on it
  15.   }  
  16. }
  17. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top