1.0.16 • Published 1 year ago

@wiajs/router v1.0.16

Weekly downloads
2
License
ELv2
Repository
github
Last release
1 year ago

English | 简体中文

wia router

Introduction

wia router is the official router for wia.js. It deeply integrates with wia.js core to make building Multiple Page Applications with wia.js a breeze. Features include:

  • Nested route/view mapping
  • Page-based router No configuration
  • Dynamic loading of html, css, js
  • Route params, query, wildcards
  • Links with automatic active CSS classes
  • Hash mode

Build

You will need Node.js installed on your system.

First, install all required dependencies

$ npm install

To build development version:

$ npm run build-dev

The resulting files are:

  1. dist/router.common.js
  2. dist/router.common.map
  3. dist/router.esm.js
  4. dist/router.esm.map
  5. dist/router.umd.js
  6. dist/router.umd.map

To build production (minified) version:

$ npm run build

The resulting files are:

  1. dist/router.common.js
  2. dist/router.common.min.js
  3. dist/router.esm.js
  4. dist/router.esm.min.js
  5. dist/router.umd.js
  6. dist/router.min.js

use

  import Router from @wiajs/router

Stay In Touch

  • For latest releases and announcements, follow on Twitter: @wiajs

License

ELv2

Copyright (c) 2020-present Sibyl Yu

1.0.16

1 year ago

1.0.15

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago