mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
rename to pathjs
This commit is contained in:
1 parent
e4ea80a783
commit
f9694258d2
2 files changed
+2
-2
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/// <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);
|
||||
Reference in new issue
Block a user