Google News
logo
Meteor.js - Interview Questions
How to Importing Meteor "pseudo-globals"?
For backwards compatibility Meteor 1.3 still provides Meteor’s global namespacing for the Meteor core package as well as for other Meteor packages you include in your application. You can also still directly call functions such as Meteor.publish, as in previous versions of Meteor, without first importing them. However, it is recommended best practice that you first load all the Meteor “pseudo-globals” using the import { Name } from 'meteor/package' syntax before using them. For instance :
 
import { Meteor } from 'meteor/meteor';
import { EJSON } from 'meteor/ejson';
Advertisement