api.addAssets

package.js api.addAssets(filenames, architecture) Specify asset files for your package. They can be accessed via the Assets API from the server, or at the URL /packages/username_package-name/file-name from the client, depending on the architecture passed. Arguments filenames String or Array of Strings Paths to the asset files. architecture String or Array of Strings Specify where this asset should be available (e.g., 'server', 'client', 'web.browser', 'web.cordova'). You can speci

Angular

Angular is a frontend rendering library that is officially supported by Meteor. The best place to read about how to use both Angular 1 and Angular 2 in Meteor is the Angular-Meteor site.

AccountsServer#validateNewUser

Server accountsServer.validateNewUser(func) Source Set restrictions on new user creation. Arguments func Function Called whenever a new user is created. Takes the new user object, and returns true to allow the creation or false to abort.

AccountsServer#validateLoginAttempt

Server accountsServer.validateLoginAttempt(func) Source Validate login attempts. Arguments func Function Called whenever a login is attempted (either successful or unsuccessful). A login can be aborted by returning a falsy value or throwing an exception.

AccountsServer#onCreateUser

Server accountsServer.onCreateUser(func) Source Customize new user creation. Arguments func Function Called whenever a new user is created. Return the new user object, or throw an Error to abort the creation.

AccountsServer

Server new AccountsServer(server) import { AccountsServer } from 'meteor/accounts-base' Source Constructor for the Accounts namespace on the server. Arguments server Object A server object such as Meteor.server.

AccountsCommon#userId

Anywhere but publish functions accountsClientOrServer.userId() Source Get the current user id, or null if no user is logged in. A reactive data source.

AccountsCommon#user

Anywhere but publish functions accountsClientOrServer.user() Source Get the current user record, or null if no user is logged in. A reactive data source.

AccountsCommon#onLoginFailure

Anywhere accountsClientOrServer.onLoginFailure(func) Source Register a callback to be called after a login attempt fails. Arguments func Function The callback to be called after the login has failed.

AccountsCommon#onLogin

Anywhere accountsClientOrServer.onLogin(func) Source Register a callback to be called after a login attempt succeeds. Arguments func Function The callback to be called when login is successful.