-
-
Save heapwolf/1406611 to your computer and use it in GitHub Desktop.
figuring out how to use director (flatiron js)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var routes = { | |
'/track' : { | |
on: function() { | |
alert('a'); | |
}, | |
'/:id' : { | |
on: function(id){ | |
alert('b'); | |
} | |
} | |
} | |
}; | |
var router = Router(routes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment