How to access global variables in Meteor template without using a helper

How to access global variables in Meteor template without using a helper

Using fat arrow:

Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));


Or the common way:

Blaze.registerHelper('isSuperAdmin', function() {
  return true;
 });

0 pensamientos:

Post a Comment

feedback!