Skip to content Skip to sidebar Skip to footer

Why Can't My Meteor App Recognize My Function?

I have a meteor app with a

Solution 1:

Meteor wraps all functions so that their scope is restricted to the file they are in unless they are defined as global functions. If you remove var from var verifypwd it should work. A more meteoric way of doing what you're trying to do is to define a template event for your PPRO template and put your verifypwd code in the same file, then it can be a local function.


Post a Comment for "Why Can't My Meteor App Recognize My Function?"