Directory

← Back

web-router

a web component router

Author

Rating

Popularity

<100

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

web-router - Vaadin Add-on Directory

a web component router web-router - Vaadin Add-on Directory
# A Router for web Web router based on web components, ready for Polymer,jQuery,Vue and frameworks can use web-components ## Install ``` bash npm i @fsx950223/web-router ``` ## HTML Usage ``` html click to 1 click to 2
click to 3
``` ``` js import '@fsx950223/web-router' ``` ### use by unpkg ``` html ``` ## Demo ``` bash npm run start ```
View on NPM
View on GitHub

web-router version 1.0.0
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.0.1
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.0.2
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.0.3
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.0.4
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.0.5
### Dependencies * @polymer/lit-element#^0.6.3

web-router version 1.1.0
### Dependencies * @polymer/lit-element#^0.6.3

Online