You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
544 B

пре 4 година
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
пре 4 година
import "/lib/MyRes"
пре 4 година
import './mainLayout.html';
пре 4 година
import './templates/main_item'
пре 4 година
import '/lib/router'
пре 4 година
import './templates/user_page'
пре 4 година
Template.hello.onCreated(function helloOnCreated() {
this.counter = new ReactiveVar(0);
});
Template.hello.helpers({
counter() {
return Template.instance().counter.get();
},
});
Template.hello.events({
'click button'(event, instance) {
instance.counter.set(instance.counter.get() + 1);
},
});