Skip to content

Instantly share code, notes, and snippets.

@somebody32
Created January 26, 2016 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebody32/b1036436d2af8609355b to your computer and use it in GitHub Desktop.
Save somebody32/b1036436d2af8609355b to your computer and use it in GitHub Desktop.
heavy's initial router
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