src/router3.js
function resolve_(element, resolve) {
    // if element is a fragment, it will load everything
    // up to child element
    if (element.MaterialFragment) {
      element.MaterialFragment.loaded.then(() => {
        slice.call(element.querySelectorAll(selClass))
          .forEach(element => componentHandler.upgradeElement(element));
        resolve();
      });
    } else {
      element.addEventListener('load', resolve, { once: true });
    }
  }
function resolve_(element, resolve) {
    // if element is a fragment, it will load everything
    // up to child element
    if (element.MaterialFragment) {
      element.MaterialFragment.loaded.then(() => {
        slice.call(element.querySelectorAll(selClass))
          .forEach(element => componentHandler.upgradeElement(element));
        resolve();
      });
    } else {
      element.addEventListener('load', resolve, { once: true });
    }
  }
function resolve_ ( element , resolve ) { // if element is a fragment, it will load everything // up to child element if ( element . MaterialFragment ) { element . MaterialFragment . loaded . then ( ( ) => { slice . call ( element . querySelectorAll ( selClass ) ) . forEach ( element => componentHandler . upgradeElement ( element ) ) ; resolve ( ) ; } ) ; } else { element . addEventListener ( 'load' , resolve , { once : true } ) ; } }
Resolve and upgrade any router element present in element

@param {HTMLElement} element - The element to upgrade/resolve.
@param {Function} resolve - The function to resolve the Promise.
@private
Resolve and upgrade any router element present in element