0.6.2 • Published 8 years ago

chialab-router v0.6.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Router

A simple agnostic Router for Web Apps.

Install

NPM

$ npm i chialab-router --save

Bower

$ bower i chialab-router --save

Example

var appRouter = new Router();
appRouter.on('/user/:username', function(id) {
    fetchUserById(id);
});
appRouter.on('/posts/:id', function(id) {
    fetchPostById(id);
});
appRouter.on('/posts', function() {
    listPosts();
});
appRouter.on('*', function() {
    page404();
});
appRouter.start();

Polyfill

HTML5-History-API

Dev

Chialab es6-workflow Travis Code coverage

Sauce Test Status

0.6.2

8 years ago

0.6.0

8 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago