Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- port Backbone from 'backbone';
- import $ from 'jquery';
- + import routes from './routes';
- export default Backbone.Router.extend({
- - routes: {
- - 'about': 'about',
- - },
- + routes,
- about() {
- $('#app').html(`You're viewing about page. It was loaded in async way`);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement