mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
33 lines
381 B
TypeScript
33 lines
381 B
TypeScript
/// <reference path="pathjs.d.ts" />
|
|
|
|
Path.map("/test/:id")
|
|
.to(()=>{ });
|
|
|
|
Path.listen();
|
|
|
|
//History
|
|
Path.history.listen(() =>{
|
|
|
|
});
|
|
|
|
var initial = Path.history.initial;
|
|
|
|
//Core
|
|
var route = Path.core.route("/test/:id");
|
|
|
|
function test1() {
|
|
|
|
}
|
|
|
|
route.enter(test1);
|
|
|
|
function test2() {
|
|
|
|
}
|
|
|
|
var funs = new Array<Function>();
|
|
|
|
funs.push(test1);
|
|
funs.push(test2);
|
|
|
|
route.enter(funs); |