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.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							495 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							495 B
						
					
					
				
								import { Template } from 'meteor/templating';
							 | 
						|
								import { ReactiveVar } from 'meteor/reactive-var';
							 | 
						|
								
							 | 
						|
								import './mainLayout.html';
							 | 
						|
								import './templates/main_item.js'
							 | 
						|
								import '/lib/router'
							 | 
						|
								
							 | 
						|
								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);
							 | 
						|
								  },
							 | 
						|
								});
							 | 
						|
								
							 |