Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
- const test = new ReactiveVar(1);
- Meteor.setInterval(() => {
- test.set(test.get() + 1);
- console.log(`new:${test.get()}`);
- }, 1000);
- FlowRouter.route('*', {
- name: 'Test.name',
- action() {
- console.log('rendered');
- },
- title() {
- const t = test.get();
- console.log(`change title:${t}`);
- return `count ${t}`;
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment