packages/rebound-router/lib/rebound-router.js
function(route) {

    // Save the previous route value
    this._previousRoute = this._currentRoute;

    // Fetch Resources
    document.body.classList.add("loading");
    return this._fetchResource(route, this.config.container).then(function(res){
      document.body.classList.remove('loading');
      return res;
    });
  }
function(route) {

    // Save the previous route value
    this._previousRoute = this._currentRoute;

    // Fetch Resources
    document.body.classList.add("loading");
    return this._fetchResource(route, this.config.container).then(function(res){
      document.body.classList.remove('loading');
      return res;
    });
  }
function ( route ) { // Save the previous route value this . _previousRoute = this . _currentRoute ; // Fetch Resources document . body . classList . add ( "loading" ) ; return this . _fetchResource ( route , this . config . container ) . then ( function ( res ) { document . body . classList . remove ( 'loading' ) ; return res ; } ) ; }
Called when no matching routes are found. Extracts root route and fetches it's resources
Called when no matching routes are found . Extracts root route and fetches it s resources