The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/app > initializeApp

initializeApp() function

Creates and initializes a FirebaseApp instance.

Signature:

export declare function initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;

Parameters

Parameter Type Description
options FirebaseOptions Options to configure the app's services.
config FirebaseAppConfig FirebaseApp Configuration

Returns:

FirebaseApp