I have the following logic in my meteor app:
Template.configs.events = {
'click li': function(e, template) {
Meteor.call('getMaster', uri, function(err, response) {
// Template.set(response)
});
}
};
After a user clicks on a list, a json object is returned via Ajax. How would I dynamically inject this object into the template? Is there a design pattern?
Thank you in advance.