createChild(path) {
      assert(path);

      // |path| extends this route's path if it doesn't have a leading slash.
      // If it does have a leading slash, it's just set as the new route's URL.
      const newUrl = path[0] == '/' ? path : `${this.path}/${path}`;

      const route = new Route(newUrl);
      route.parent = this;
      route.section = this.section;
      route.depth = this.depth + 1;

      return route;
    }
/**
     * Returns a new Route instance that's a child of this route.
     * @param {string} path Extends this route's path if it doesn't contain a
     *     leading slash.
     * @return {!settings.Route}
     * @private
     */
Returns a new Route instance that's a child of this route.
@param {string} path Extends this route's path if it doesn't contain a
leading slash.
Returns a new Route instance that ' s a child of this route . @param { string } path Extends this route ' s path if it doesn ' t contain a leading slash .
createChild(path) {
      assert(path);
      const newUrl = path[0] == '/' ? path : `${this.path}/${path}`;
      const route = new Route(newUrl);
      route.parent = this;
      route.section = this.section;
      route.depth = this.depth + 1;
      return route;
    }
createChild ( path ) { assert ( path ) ; const newUrl = path [ 0 ] == '/' ? path : ` ${ this . path } ${ path } ` ; const route = new Route ( newUrl ) ; route . parent = this ; route . section = this . section ; route . depth = this . depth + 1 ; return route ; }
Returns a new Route instance that's a child of this route.
Returns a new Route instance that ' s a child of this route .
// |path| extends this route's path if it doesn't have a leading slash. // If it does have a leading slash, it's just set as the new route's URL.