Interface AngularFire

Index

Methods

Methods

public $add(value: any)

Parameters

  • value: any

public $bind($scope: IScope, modelName: string): IPromise

Parameters

  • $scope: IScope
  • modelName: string

Returns

IPromise

public $child(key: string): AngularFire

Parameters

  • key: string

Returns

AngularFire

public $getIndex(): Array<string>

Returns

Array<string>

public $off(eventType?: string, callback?: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void, cancelCallback?: () => void, context?: Object): (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void

Parameters

  • eventType?: string optional
  • callback?: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void optional
  • cancelCallback?: () => void optional
  • context?: Object optional

Returns

(dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void

public $on(eventType: string, callback: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void, cancelCallback?: () => void, context?: Object): (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void

Parameters

  • eventType: string
  • callback: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void
  • cancelCallback?: () => void optional
  • context?: Object optional

Returns

(dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void

public $remove(key?: string)

Parameters

  • key?: string optional

public $save(key?: string)

Parameters

  • key?: string optional

public $set(value: any)

Parameters

  • value: any