handleRouteChange(e) {
    let article = e.article;
    if (e.doShow) {
      if (article) {
        if (e.oldRoute === null || e.oldRoute.type === 'hub') {
          this.showArticle(article);
        } else {
          this.switchToArticle(article, e.oldRoute);
        }
      } else {
        this.showHub();
      }
    } else {
      Router.canNavigate = true; // set to allow Router to start accepting navigation again
    }
  }
/**
   * Route Handler
   *
   * On router change handler. Show article or hub.
   * @param {Object} e Router Object
   */
Route Handler
On router change handler. Show article or hub.
@param {Object} e Router Object
Route Handler On router change handler . Show article or hub . @param { Object } e Router Object
handleRouteChange(e) {
    let article = e.article;
    if (e.doShow) {
      if (article) {
        if (e.oldRoute === null || e.oldRoute.type === 'hub') {
          this.showArticle(article);
        } else {
          this.switchToArticle(article, e.oldRoute);
        }
      } else {
        this.showHub();
      }
    } else {
      Router.canNavigate = true; 
    }
  }
handleRouteChange ( e ) { let article = e . article ; if ( e . doShow ) { if ( article ) { if ( e . oldRoute === null || e . oldRoute . type === 'hub' ) { this . showArticle ( article ) ; } else { this . switchToArticle ( article , e . oldRoute ) ; } } else { this . showHub ( ) ; } } else { Router . canNavigate = true ; } }
Route Handler
 On router change handler.
Route Handler On router change handler .
// set to allow Router to start accepting navigation again