Created
January 26, 2016 19:24
-
-
Save somebody32/b1036436d2af8609355b to your computer and use it in GitHub Desktop.
heavy's initial router
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
import Backbone from 'backbone'; | |
import $ from 'jquery'; | |
export default Backbone.Router.extend({ | |
routes: { | |
'heavy(/:heavy_param)': 'heavy', | |
}, | |
heavy(heavy_param) { | |
$('#app').html(`You're viewing that heavy app, heavy param from the URL is: ${heavy_param}`); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment