I have created a template name foo
and bind some events like:
Template.foo.events({
'submit #identity': function(event, template) {
Meteor.call("methodName", function ( error,result) {
if (error) {
console.log(error);
}
console.log(result)
});
})
I am not able to figure out why this meteor.call() method is working out side of this template events but its doesn’t work inside this template event block.