navigateToPreviousRoute() {
      const previousRoute = window.history.state &&
          assert(this.getRouteForPath(
              /** @type {string} */ (window.history.state)));

      if (previousRoute && previousRoute.depth <= this.currentRoute.depth)
        window.history.back();
      else
        this.navigateTo(
            this.currentRoute.parent ||
            /** @type {!settings.Route} */ (this.routes_.BASIC));
    }
/**
     * Navigates to the previous route if it has an equal or lesser depth.
     * If there is no previous route in history meeting those requirements,
     * this navigates to the immediate parent. This will never exit Settings.
     */
Navigates to the previous route if it has an equal or lesser depth.
If there is no previous route in history meeting those requirements,
this navigates to the immediate parent. This will never exit Settings.
Navigates to the previous route if it has an equal or lesser depth . If there is no previous route in history meeting those requirements this navigates to the immediate parent . This will never exit Settings .
navigateToPreviousRoute() {
      const previousRoute = window.history.state &&
          assert(this.getRouteForPath(
               (window.history.state)));
      if (previousRoute && previousRoute.depth <= this.currentRoute.depth)
        window.history.back();
      else
        this.navigateTo(
            this.currentRoute.parent ||
             (this.routes_.BASIC));
    }
navigateToPreviousRoute ( ) { const previousRoute = window . history . state && assert ( this . getRouteForPath ( ( window . history . state ) ) ) ; if ( previousRoute && previousRoute . depth <= this . currentRoute . depth ) window . history . back ( ) ; else this . navigateTo ( this . currentRoute . parent || ( this . routes_ . BASIC ) ) ; }
Navigates to the previous route if it has an equal or lesser depth.
Navigates to the previous route if it has an equal or lesser depth .
/** @type {string} */ /** @type {!settings.Route} */