<commit_before># API Reference | AngularFire

## Table of Contents

* [Initialization](#initialization)
* [`$firebaseObject`](#firebaseobject)
  * [`$remove()`](#remove)
  * [`$save()`](#save)
  * [`$loaded()`](#loaded)
  * [`$ref()`](#ref)
  * [`$bindTo(scope, varName)`](#bindtoscope-varname)
  * [`$watch(callback, context)`](#watchcallback-context)
  * [`$destroy()`](#destroy)
  * [`$resolved`](#resolved)
* [`$firebaseArray`](#firebasearray)
  * [`$add(newData)`](#addnewdata)
  * [`$remove(recordOrIndex)`](#removerecordorindex)
  * [`$save(recordOrIndex)`](#saverecordorindex)
  * [`$getRecord(key)`](#getrecordkey)
  * [`$keyAt(recordOrIndex)`](#keyatrecordorindex)
  * [`$indexFor(key)`](#indexforkey)
  * [`$loaded()`](#loaded-1)
  * [`$ref()`](#ref-1)
  * [`$watch(cb[, context])`](#watchcb-context)
  * [`$destroy()`](#destroy-1)
  * [`$resolved`](#resolved-1)
* [`$firebaseAuth`](#firebaseauth)
  * Authentication
    * [`$signInWithCustomToken(authToken)`](#signinwithcustomtokenauthtoken)
    * [`$signInAnonymously()`](#signinanonymously)
    * [`$signInWithEmailAndPassword(email, password)`](#signinwithemailandpasswordemail-password)
    * [`$signInWithPopup(provider)`](#signinwithpopupprovider)
    * [`$signInWithRedirect(provider[, options])`](#signinwithredirectprovider-options)
    * [`$signInWithCredential(credential)`](#signinwithcredentialcredential)
    * [`$getAuth()`](#getauth)
    * [`$onAuthStateChanged(callback[, context])`](#onauthstatechangedcallback-context)
    * [`$signOut()`](#signout)
  * User Management
    * [`$createUserWithEmailAndPassword(email, password)`](#createuserwithemailandpasswordemail-password)
    * [`$updatePassword(password)`](#updatepasswordpassword)
    * [`$updateEmail(email)`](#updateemailemail)
    * [`$deleteUser()`](#deleteuser)
    * [`$sendPasswordResetEmail(email)`](#sendpasswordresetemailemail)
  * Router Helpers
    * [`$waitForSignIn()`](#waitforsignin)
    * [`$requireSignIn(requireEmailVerification)`](#requiresignin)
* [Extending the Services](#extending-the-services)
  * [Extending `$firebaseObject`](#extending-firebaseobject)
  * [Extending `$firebaseArray`](#extending-firebasearray)
  * [Passing a Class into $extend](#passing-a-class-into-extend)
  * [Decorating the Services](#decorating-the-services)
  * [Creating AngularFire Services](#creating-angularfire-services)
* [SDK Compatibility](#sdk-compatibility)
* [Browser Compatibility](#browser-compatibility)


## Initialization

```js
var app = angular.module("app", ["firebase"]);
app.config(function() {<commit_msg>Fixed table of contents link for requireSignIn() in reference docs (#893)<commit_after># API Reference | AngularFire

## Table of Contents

* [Initialization](#initialization)
* [`$firebaseObject`](#firebaseobject)
  * [`$remove()`](#remove)
  * [`$save()`](#save)
  * [`$loaded()`](#loaded)
  * [`$ref()`](#ref)
  * [`$bindTo(scope, varName)`](#bindtoscope-varname)
  * [`$watch(callback, context)`](#watchcallback-context)
  * [`$destroy()`](#destroy)
  * [`$resolved`](#resolved)
* [`$firebaseArray`](#firebasearray)
  * [`$add(newData)`](#addnewdata)
  * [`$remove(recordOrIndex)`](#removerecordorindex)
  * [`$save(recordOrIndex)`](#saverecordorindex)
  * [`$getRecord(key)`](#getrecordkey)
  * [`$keyAt(recordOrIndex)`](#keyatrecordorindex)
  * [`$indexFor(key)`](#indexforkey)
  * [`$loaded()`](#loaded-1)
  * [`$ref()`](#ref-1)
  * [`$watch(cb[, context])`](#watchcb-context)
  * [`$destroy()`](#destroy-1)
  * [`$resolved`](#resolved-1)
* [`$firebaseAuth`](#firebaseauth)
  * Authentication
    * [`$signInWithCustomToken(authToken)`](#signinwithcustomtokenauthtoken)
    * [`$signInAnonymously()`](#signinanonymously)
    * [`$signInWithEmailAndPassword(email, password)`](#signinwithemailandpasswordemail-password)
    * [`$signInWithPopup(provider)`](#signinwithpopupprovider)
    * [`$signInWithRedirect(provider[, options])`](#signinwithredirectprovider-options)
    * [`$signInWithCredential(credential)`](#signinwithcredentialcredential)
    * [`$getAuth()`](#getauth)
    * [`$onAuthStateChanged(callback[, context])`](#onauthstatechangedcallback-context)
    * [`$signOut()`](#signout)
  * User Management
    * [`$createUserWithEmailAndPassword(email, password)`](#createuserwithemailandpasswordemail-password)
    * [`$updatePassword(password)`](#updatepasswordpassword)
    * [`$updateEmail(email)`](#updateemailemail)
    * [`$deleteUser()`](#deleteuser)
    * [`$sendPasswordResetEmail(email)`](#sendpasswordresetemailemail)
  * Router Helpers
    * [`$waitForSignIn()`](#waitforsignin)
    * [`$requireSignIn(requireEmailVerification)`](#requiresigninrequireemailverification)
* [Extending the Services](#extending-the-services)
  * [Extending `$firebaseObject`](#extending-firebaseobject)
  * [Extending `$firebaseArray`](#extending-firebasearray)
  * [Passing a Class into $extend](#passing-a-class-into-extend)
  * [Decorating the Services](#decorating-the-services)
  * [Creating AngularFire Services](#creating-angularfire-services)
* [SDK Compatibility](#sdk-compatibility)
* [Browser Compatibility](#browser-compatibility)


## Initialization

```js
var app = angular.module("app", ["firebase"]);
app.config(function() {
{'fraction_non_alphanumeric': 0.20755078574166347, 'fraction_numerical': 0.0021080873898045227, 'mean_word_length': 7.801011804384486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6565951', 'n_tokens_mistral': 1874, 'n_tokens_neox': 1714, 'n_words': 184}