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
13 lines
255 B
JavaScript
13 lines
255 B
JavaScript
'use strict';
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
const template = views.getTemplate('posts-page');
|
|
|
|
class PostsPageView {
|
|
constructor(ctx) {
|
|
views.replaceContent(ctx.hostNode, template(ctx));
|
|
}
|
|
}
|
|
|
|
module.exports = PostsPageView;
|