Options
All
  • Public
  • Public/Protected
  • All
Menu

@blaugold/angular-firebase

Index

Type aliases

AuthCredential

AuthCredential: AuthCredential

AuthErrorCodeType

AuthErrorCodeType: "auth/app-deleted" | "auth/app-not-authorized" | "auth/argument-error" | "auth/invalid-api-key" | "auth/invalid-user-token" | "auth/network-request-failed" | "auth/operation-not-allowed" | "auth/requires-recent-login" | "auth/too-many-requests" | "auth/unauthorized-domain" | "auth/user-disabled" | "auth/user-token-expired" | "auth/web-storage-unsupported"

General error codes which may occur with every operation.

AuthProvider

AuthProvider: AuthProvider

DataSnapshot

DataSnapshot: ExtendedDataSnapshot

EventType

EventType: "value" | "child_added" | "child_changed" | "child_removed" | "child_moved"

Events which can be listened for.

NativeDatabaseRef

NativeDatabaseRef: Reference

Query

Query: Query

UserCredential

UserCredential: auth.UserCredential

Functions

appFactory

authFactory

databaseFactory

invokeLazy

  • invokeLazy(): boolean

runInZone

  • runInZone<T>(this: T): T

setLazyInvocation

  • setLazyInvocation(lazy: boolean): void
  • Enable or disable lazy invocation of firebase operations.

    Since the library focuses on observables, all operations are invoked lazily as is usually the case with observables. This means for example, calling someRef.set({ foo: 'bar' }) will do nothing without either subscribing to the returned observable or calling toPromise() on it.

    This is in contrast to the Firebase Web-API which starts the operation when the function is called. It is possible to globally configure the library to behave like the native Firebase Web-API by calling setLazyInvocation(false)

    Parameters

    • lazy: boolean

    Returns void

wrapExternalPromise

  • wrapExternalPromise<T>(promise: any): Promise<T>
  • Type parameters

    • T

    Parameters

    • promise: any

    Returns Promise<T>

wrapPromise

  • wrapPromise<T>(promiseFact: function): Observable<T>
  • Type parameters

    • T

    Parameters

    • promiseFact: function
        • (): Promise<T>
        • Returns Promise<T>

    Returns Observable<T>

Generated using TypeDoc