Function convertLinksToHyloRouterLinks

  • import { convertLinksToHyloRouterLinks } from '@src/hylo-components/utils/usefull/usefull';

    Searches the content of a html element for link tags which are not already wrapped by an ion-router-link or hylo-router-link component and does not have a target attribute or with target="_self". If the link is local, it will be connected to the hylo-router (which has to be present in your app) to prevent a new page load and rather initiate a page change by the router.

    Parameters

    • parent: HTMLElement

      the parent element to check its content for links

    Returns void

Generated using TypeDoc