Loading the Meteor
Let’s find out how code is loaded in MeteorJS.
We'll cover the following...
Default export
Files and variables must be exported before they can be imported and used elsewhere. We can do this by using the ES2015 export statement. The code snippet below exports a function called addNumbers
from addition.js
. ...