Directory

← Back

web-router

a web component router

Author

Contributors

Rating

A Router for web

Web router based on web components, ready for Polymer,jQuery,Vue and frameworks can use web-components

Install

npm i @fsx950223/web-router

HTML Usage

<web-router>
    <web-link route='3' href='1'>click to 1</web-link>
    <web-router>
        <web-link route='1' href='2'>click to 2</web-link>
    </web-router>
    <div route='2'>
        <web-link href='3?a=123'>click to 3</web-link>
    </div>
</web-router>
import '@fsx950223/web-router'

use by unpkg

<script src="https://unpkg.com/@fsx950223/web-router"></script>

Demo

npm run start

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • @polymer/lit-element#^0.6.3
Released
2018-11-25
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Browser
Browser Independent
Online