In one of my helpers I have the following code
Template.App.onCreated(function() {
this.settings = new ReactiveVar([]);
Meteor.call('settings', (error, result) => {
this.settings.set($.parseJSON(result));
});
});
Template.App.helpers({
data: function() {
console.log(Template.instance().settings.get());
return Template.instance().settings.get();
}
});
It calls to a method that executes the following code
return Assets.getText('settings.default.json');
And in the console it would print
But when I try to use it in my template like this
{{#each data}}
{{this.public.hello}}
{{this.public.public.hello}}
{{/each}}
Neither works. No errors or anything anywhere. It displays nothing.
Why is this?