Meteor Tutorial
Meteor Useful Resources
Selected Reading
- Meteor - Best Practices
- Meteor - ToDo App
- Meteor - Running on mobile
- Meteor - Deployment
- Meteor - Structure
- Meteor - Publish & Subscribe
- Meteor - Package.js
- Meteor - Methods
- Meteor - Accounts
- Meteor - Sorting
- Meteor - Security
- Meteor - Assets
- Meteor - Email
- Meteor - HTTP
- Meteor - EJSON
- Meteor - Timers
- Meteor - Blaze
- Meteor - Check
- Meteor - Core API
- Meteor - Packages
- Meteor - Tracker
- Meteor - Session
- Meteor - Events
- Meteor - Forms
- Meteor - Collections
- Meteor - Templates
- Meteor - First Application
- Meteor - Environment Setup
- Meteor - Overview
- Meteor - Home
Meteor Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Meteor - Core API
Meteor - Core Api
If you want to pmit the code to run only on the server or the cpent side, you can use the following code −
meteorApp.js
if (Meteor.isCpent) { // Code running on cpent... } if (Meteor.isServer) { // Code running on server... }
You can pmit the code to run only when the app is using Cordova bundpng.
if (Meteor.isCordova) { // Code running on Cordova... }
Some plugins need to wait until the server and DOM are ready. You can use the following code to wait until everything begins.
Meteor.startup(function () { // Code running after platform is ready... });
Following table psts some other core API methods.
Sr.No. | Method & Details |
---|---|
1 | Meteor.wrapAsync(function) Used for wrapping asynchronous code and convert it into synchronous. |
2 | Meteor.absoluteUrl([path], [options]) Used for generating absolute URL pointing to the app. |
3 | Meteor.settings Used for setting deployment configuration. |
4 | Meteor.pubpsh(name, function) Used for pubpshing records to the cpent. |