Subscribe to our list to receive the latest updates on Node on Fire

Class: ModuleProperties

ModuleProperties

new ModuleProperties()

The ModuleProperties module sets all modules as properties to an object. This module will be replaced once dependency injection is broadly available. See ModuleProperties#set.

Methods

set(object)

Sets all of the app's modules as properties to object. For example, this creates object.models referencing the Models module, object.HTTPServer to the HTTPServer module and many more.

Parameters:
Name Type Description
object Object

The object on which the properties are added.

Do you have any questions or comments on this page? Start a discussion below.

comments powered by Disqus
Subscribe to our list to receive the latest updates on Node on Fire