54e3099c56
- Controller lifetime is bound to route lifetime - View lifetime is bound to controller lifetime - Control lifetime is bound to view lifetime - Enhanced event dispatching - Enhanced responsiveness in some places - Views communicate user input to controllers via new event system
15 lines
305 B
JavaScript
15 lines
305 B
JavaScript
'use strict';
|
|
|
|
const topNavigation = require('../models/top_navigation.js');
|
|
|
|
class HistoryController {
|
|
constructor() {
|
|
topNavigation.activate('');
|
|
}
|
|
}
|
|
|
|
module.exports = router => {
|
|
router.enter('/history', (ctx, next) => {
|
|
ctx.controller = new HistoryController();
|
|
});
|
|
};
|