PHP Classes

File: public/js/app/vue-todo/views/routes.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   public/js/app/vue-todo/views/routes.js   Download  
File: public/js/app/vue-todo/views/routes.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change:
Date: 8 years ago
Size: 468 bytes
 

Contents

Class file image Download
define(['app/vue-todo/views/appview', 'router'], function (appView, Router) { var router = new Router(); ['all', 'active', 'completed'].forEach(function (visibility) { router.on(visibility, function () { appView.visibility = visibility; }); }); router.configure({ notfound: function () { window.location.hash = ''; appView.visibility = 'all'; } }); router.init(); });