fundamental.js /js/routers/MainRouter.js

Language Javascript Lines 19
MD5 Hash 586de6f3285c81496cccec739c7def3d
Repository git://github.com/radekstepan/fundamental.js.git View Raw File View Project SPDX
| Open JSFiddle
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
// Main App Router
// ----------

App.Routers.Main = Backbone.Router.extend({

    initialize: function(options) {
    	// Initialize new **Todos Collection** and fetch them from db.
    	App.Models.Todos = new TodoList;
		App.Models.Todos.fetch();

		// Instantiate the main **Views**.
        new App.Views.CreateTodoView;
        
		new App.Views.TodoStatsView;

        new App.Views.TodoListView;
    }

});
Back to Top