js/router.js
/**
   * Get all routes from the direct wc-route child element.
   * The document title can be updated by providing an
   * title attribute to the wc-route tag
   */
Get all routes from the direct wc-route child element.
The document title can be updated by providing an
title attribute to the wc-route tag
Get all routes from the direct wc - route child element . The document title can be updated by providing an title attribute to the wc - route tag
get routes() {
    return Array.from(this.querySelectorAll("wc-route"))
      .filter(node => node.parentNode === this)
      .map(r => ({
        path: r.getAttribute("path"),
        title: r.getAttribute("title"),
        component: r.getAttribute("component"),
        resourceUrl: r.getAttribute("resourceUrl")
      }));
  }
get routes ( ) { return Array . from ( this . querySelectorAll ( "wc-route" ) ) . filter ( node => node . parentNode === this ) . map ( r => ( { path : r . getAttribute ( "path" ) , title : r . getAttribute ( "title" ) , component : r . getAttribute ( "component" ) , resourceUrl : r . getAttribute ( "resourceUrl" ) } ) ) ; }
Get all routes from the direct wc-route child element.
Get all routes from the direct wc - route child element .
// Optional: document title // name of the web component the should be displayed // Bundle path if lazy loading the component