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
17 lines
412 B
JavaScript
17 lines
412 B
JavaScript
'use strict';
|
|
|
|
const config = require('../config.js');
|
|
const views = require('../util/views.js');
|
|
|
|
const template = views.getTemplate('not-found');
|
|
|
|
class NotFoundView {
|
|
constructor(path) {
|
|
this._hostNode = document.getElementById('content-holder');
|
|
|
|
const sourceNode = template({path: path});
|
|
views.replaceContent(this._hostNode, sourceNode);
|
|
}
|
|
}
|
|
|
|
module.exports = NotFoundView;
|