Page Contents

Home > @loopback/core > Application > init

Application.init() method

Initialize the application, and all of its registered observers. The application state is checked to ensure the integrity of initialize.

If the application is already initialized, no operation is performed.

This method is automatically invoked by start() if the application is not initialized.

Signature:

init(): Promise<void>;

Returns:

Promise<void>