Skip to content

Xm4s/Router.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Router.js

Routing Micro Framework ( < 1KB minified ) without dependencies

Usage:

Router.init([
  {controller: 'test', route: '/test/:name/:surname'},
  {controller: 'home', route: ''}
]).onChange(function(controller, params) {
	
});

Follow the example, with url '#/test/Alberto/Sarullo' the event will incapsulate two parameters:

controller will be: 'test'
params will be: {
  'name':    'Alberto', 
  'surname': 'Sarullo'
 }

About

Micro Routing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%