I just added reactive var and trying to create simple var,
Template.forum.onCreated = function(){
this.forun_tab = new ReactiveVar(null);
}
Template.forum.helpers({
forumTab:function(){
var tmpl = Template.instance();
var res = tmpl.forun_tab.get() || "newPage";
return res;
}
});
It is throwing error cannot read property get of undefined
what is wrong with this simple logic?