šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

be-a-nav-link

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-a-nav-link

Naming this component (which requires avoiding the npm spam filter among other obstacles) was not easy, and I'm not altogether pleased with the name.

0.0.4
latest
Source
npm
Version published
Maintainers
1
Created
Source

Naming this component (which requires avoiding the npm spam filter among other obstacles) was not easy, and I'm not altogether pleased with the name.

This web component "upgrades" hyperlink tags so that rather than opening the url, it instead fires an event "route-changed", which the nav tag can, for example, be extended to handle.

Syntax:

<be-a-nav-link upgrade=a if-wants-to-be-a-nav-link></be-a-nav-link>

<nav id=test be-a-router>
    <a  be-a-nav-link href="myAccounts/14394402/statements/201904?page=1">
        Statement for April 2019
    </a>
    <br>
    <a be-a-nav-link href="myAccounts/398821401/transactions?from=2020-10-01&to=2020-11-19">
        Transactions for 10/1/2020 - 11/19/2020
    </a>
</nav>

FAQs

Package last updated on 15 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts