Skip to content

Commit b2b2ba3

Browse files
authored
docs: fix dead Firebase JS SDK reference links (#3847)
1 parent ba07218 commit b2b2ba3

9 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎docs/compat/analytics/getting-started.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Getting started with Google Analytics
22

3-
`AngularFireAnalytics` dynamically imports the `firebase/analytics` library and provides a promisified version of the [Firebase Analytics SDK (`firebase.analytics.Analytics`)](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html).
3+
`AngularFireAnalytics` dynamically imports the `firebase/analytics` library and provides a promisified version of the [Firebase Analytics SDK (`firebase.analytics.Analytics`)](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html).
44

55
> **NOTE**: [AngularFire has a new tree-shakable API](../../../README.md#developer-guide), you're looking at the documentation for the compatability version of the library. [See the v7 upgrade guide for more information on this change.](../../version-7-upgrade.md).
66
@@ -56,7 +56,7 @@ constructor(analytics: AngularFireAnalytics) {
5656

5757
## Tracking Screen Views
5858

59-
You can log [`screen_view` events](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#parameters_10) yourself of course, but AngularFire provides the `ScreenTrackingService` which automatically integrates with the Angular Router to provide Firebase with screen view tracking. You simply can integrate like so:
59+
You can log [`screen_view` events](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#parameters_10) yourself of course, but AngularFire provides the `ScreenTrackingService` which automatically integrates with the Angular Router to provide Firebase with screen view tracking. You simply can integrate like so:
6060

6161
```ts
6262
import { AngularFireAnalyticsModule, ScreenTrackingService } from '@angular/fire/compat/analytics';
@@ -77,7 +77,7 @@ export class AppModule { }
7777

7878
## Tracking User Identifiers
7979

80-
To enrich your Analytics data you can track the currently signed in user by setting [`setuserid`](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#setuserid) and [`setUserProperties`](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#set-user-properties). AngularFire provides a `UserTrackingService` which will dynamically import `firebase/auth`, monitor for changes in the logged in user, and call `setuserid` for you automatically.
80+
To enrich your Analytics data you can track the currently signed in user by setting [`setuserid`](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#setuserid) and [`setUserProperties`](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#setuserproperties). AngularFire provides a `UserTrackingService` which will dynamically import `firebase/auth`, monitor for changes in the logged in user, and call `setuserid` for you automatically.
8181

8282

8383
```ts

‎docs/compat/firestore/documents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Setup for the compat API, `AngularFireModule.initializeApp(...)` plus `AngularFi
99

1010
## Using `AngularFirestoreDocument`
1111

12-
The `AngularFirestoreDocument` service is a wrapper around the native Firestore SDK's [`DocumentReference` type](https://firebase.google.com/docs/reference/js/firebase.firestore.DocumentReference). It is a generic service that provides you with a strongly typed set of methods for manipulating and streaming data. This service is designed for use as an `@Injectable()`.
12+
The `AngularFirestoreDocument` service is a wrapper around the native Firestore SDK's [`DocumentReference` type](https://firebase.google.com/docs/reference/js/v8/firebase.firestore.DocumentReference). It is a generic service that provides you with a strongly typed set of methods for manipulating and streaming data. This service is designed for use as an `@Injectable()`.
1313

1414
```ts
1515
import { Component } from '@angular/core';

‎docs/compat/remote-config/getting-started.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1>Getting started with Remote Config <em><abbr title="beta">β<abbr></em></h1>
22

3-
`AngularFireRemoteConfig` dynamically imports the `firebase/remote-config` library on demand, provides convenience observables, pipes, and a promisified version of the [Firebase Remote Config SDK (`firebase.remoteConfig.RemoteConfig`)](https://firebase.google.com/docs/reference/js/firebase.remoteconfig.RemoteConfig).
3+
`AngularFireRemoteConfig` dynamically imports the `firebase/remote-config` library on demand, provides convenience observables, pipes, and a promisified version of the [Firebase Remote Config SDK (`firebase.remoteConfig.RemoteConfig`)](https://firebase.google.com/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig).
44

55
> **NOTE**: [AngularFire has a new tree-shakable API](../../../README.md#developer-guide), you're looking at the documentation for the compatability version of the library. [See the v7 upgrade guide for more information on this change.](../../version-7-upgrade.md).
66
@@ -59,7 +59,7 @@ DEFAULTS = InjectionToken<ConfigTemplate>;
5959

6060
### Configure Remote Config with `SETTINGS`
6161

62-
Using the `SETTINGS` DI Token (*default: {}*) will allow you to [configure Firebase Remote Config](https://firebase.google.com/docs/reference/js/firebase.remoteconfig.Settings.html).
62+
Using the `SETTINGS` DI Token (*default: {}*) will allow you to [configure Firebase Remote Config](https://firebase.google.com/docs/reference/js/v8/firebase.remoteconfig.Settings.html).
6363

6464
### Configure default values with `DEFAULTS`
6565

‎docs/compat/rtdb/querying-lists.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
## Creating a query with primitive/scalar values
66

7-
Queries are created by building on the [`firebase.database.Reference`](https://firebase.google.com/docs/reference/js/firebase.database.Reference).
7+
Queries are created by building on the [`firebase.database.Reference`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference).
88

99
```ts
1010
db.list('/items', ref => ref.orderByChild('size').equalTo('large'))
@@ -26,7 +26,7 @@ db.list('/items', ref => ref.orderByChild('size').equalTo('large'))
2626

2727
<sup>1</sup> [This is the old way of doing things and is no longer recommended for use](https://youtu.be/3WTQZV5-roY?t=3m). Anything you can achieve with `orderByPriority` you should be doing with `orderByChild`.
2828

29-
<sup>2</sup> The Firebase SDK supports an optional `key` parameter for [`startAt`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#startAt), [`endAt`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#endAt), and [`equalTo`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#equalTo) when ordering by child, value, or priority. You can specify the `key` parameter using an object literal that contains the `value` and the `key`. For example: `startAt: { value: 'some-value', key: 'some-key' }`.
29+
<sup>2</sup> The Firebase SDK supports an optional `key` parameter for [`startAt`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#startat), [`endAt`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#endat), and [`equalTo`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#equalto) when ordering by child, value, or priority. You can specify the `key` parameter using an object literal that contains the `value` and the `key`. For example: `startAt: { value: 'some-value', key: 'some-key' }`.
3030

3131
To learn more about how sorting and ordering data works in Firebase, check out the Firebase documentation on [working with lists of data](https://firebase.google.com/docs/database/web/lists-of-data#sorting_and_filtering_data).
3232

‎site/src/analytics/getting-started.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ eleventyNavigation:
77

88
## Google Analytics
99

10-
`AngularFireAnalytics` dynamically imports the `firebase/analytics` library and provides a promisified version of the [Firebase Analytics SDK (`firebase.analytics.Analytics`)](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html).
10+
`AngularFireAnalytics` dynamically imports the `firebase/analytics` library and provides a promisified version of the [Firebase Analytics SDK (`firebase.analytics.Analytics`)](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html).
1111

1212
## API Summary
1313

@@ -59,7 +59,7 @@ constructor(analytics: AngularFireAnalytics) {
5959

6060
## Tracking Screen Views
6161

62-
You can log [`screen_view` events](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#parameters_10) yourself of course, but AngularFire provides the `ScreenTrackingService` which automatically integrates with the Angular Router to provide Firebase with screen view tracking. You simply can integrate like so:
62+
You can log [`screen_view` events](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#parameters_10) yourself of course, but AngularFire provides the `ScreenTrackingService` which automatically integrates with the Angular Router to provide Firebase with screen view tracking. You simply can integrate like so:
6363

6464
```ts
6565
import { AngularFireAnalyticsModule, ScreenTrackingService } from '@angular/fire/analytics';
@@ -80,7 +80,7 @@ export class AppModule { }
8080

8181
## Tracking User Identifiers
8282

83-
To enrich your Analytics data you can track the currently signed in user by setting [`setuserid`](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#setuserid) and [`setUserProperties`](https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics.html#set-user-properties). AngularFire provides a `UserTrackingService` which will dynamically import `firebase/auth`, monitor for changes in the logged in user, and call `setuserid` for you automatically.
83+
To enrich your Analytics data you can track the currently signed in user by setting [`setuserid`](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#setuserid) and [`setUserProperties`](https://firebase.google.com/docs/reference/js/v8/firebase.analytics.Analytics.html#setuserproperties). AngularFire provides a `UserTrackingService` which will dynamically import `firebase/auth`, monitor for changes in the logged in user, and call `setuserid` for you automatically.
8484

8585

8686
```ts

‎site/src/auth/getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ eleventyNavigation:
1111

1212
`AngularFireAuth` promise proxies an initialized
1313
`firebase.auth.Auth` instance, allowing you to log users in, out, etc. [See
14-
the Firebase docs for more information on what methods are available.](https://firebase.google.com/docs/reference/js/firebase.auth.Auth)
14+
the Firebase docs for more information on what methods are available.](https://firebase.google.com/docs/reference/js/v8/firebase.auth.Auth)
1515

1616
**Example app:**
1717

‎site/src/firestore/documents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Each *document* contains a set of key-value pairs. Cloud Firestore is optimized
1212

1313
## Using `AngularFirestoreDocument`
1414

15-
The `AngularFirestoreDocument` service is a wrapper around the native Firestore SDK's [`DocumentReference` type](https://firebase.google.com/docs/reference/js/firebase.firestore.DocumentReference). It is a generic service that provides you with a strongly typed set of methods for manipulating and streaming data. This service is designed for use as an `@Injectable()`.
15+
The `AngularFirestoreDocument` service is a wrapper around the native Firestore SDK's [`DocumentReference` type](https://firebase.google.com/docs/reference/js/v8/firebase.firestore.DocumentReference). It is a generic service that provides you with a strongly typed set of methods for manipulating and streaming data. This service is designed for use as an `@Injectable()`.
1616

1717

1818

‎site/src/remote-config/getting-started.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ eleventyNavigation:
77

88
## Getting started with Remote Config (BETA)
99

10-
`AngularFireRemoteConfig` dynamically imports the `firebase/remote-config` library on demand, provides convenience observables, pipes, and a promisified version of the [Firebase Remote Config SDK (`firebase.remoteConfig.RemoteConfig`)](https://firebase.google.com/docs/reference/js/firebase.remoteconfig.RemoteConfig).
10+
`AngularFireRemoteConfig` dynamically imports the `firebase/remote-config` library on demand, provides convenience observables, pipes, and a promisified version of the [Firebase Remote Config SDK (`firebase.remoteConfig.RemoteConfig`)](https://firebase.google.com/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig).
1111

1212
## API
1313

@@ -60,7 +60,7 @@ SETTINGS = InjectionToken<remoteConfig.Settings>;
6060
DEFAULTS = InjectionToken<ConfigTemplate>;
6161
```
6262

63-
Using the `SETTINGS` DI Token (*default: {}*) will allow you to [configure Firebase Remote Config](https://firebase.google.com/docs/reference/js/firebase.remoteconfig.Settings.html).
63+
Using the `SETTINGS` DI Token (*default: {}*) will allow you to [configure Firebase Remote Config](https://firebase.google.com/docs/reference/js/v8/firebase.remoteconfig.Settings.html).
6464

6565
## Configure default values
6666

‎site/src/rtdb/querying.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Lists of data in the Realtime Database can be filtered down using specific query
1111

1212
## Creating a query with constant values
1313

14-
Queries are created by building on the [`firebase.database.Reference`](https://firebase.google.com/docs/reference/js/firebase.database.Reference).
14+
Queries are created by building on the [`firebase.database.Reference`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference).
1515

1616
```ts
1717
db.list('/items', ref => ref.orderByChild('size').equalTo('large'))
@@ -34,7 +34,7 @@ db.list('/items', ref => ref.orderByChild('size').equalTo('large'))
3434
:::annotations-section
3535
<sup>1</sup> [This is the old way of doing things and is no longer recommended for use](https://youtu.be/3WTQZV5-roY?t=3m). Anything you can achieve with `orderByPriority` you should be doing with `orderByChild`.
3636

37-
<sup>2</sup> The Firebase SDK supports an optional `key` parameter for [`startAt`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#startAt), [`endAt`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#endAt), and [`equalTo`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#equalTo) when ordering by child, value, or priority. You can specify the `key` parameter using an object literal that contains the `value` and the `key`. For example: `startAt: { value: 'some-value', key: 'some-key' }`.
37+
<sup>2</sup> The Firebase SDK supports an optional `key` parameter for [`startAt`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#startat), [`endAt`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#endat), and [`equalTo`](https://firebase.google.com/docs/reference/js/v8/firebase.database.Reference#equalto) when ordering by child, value, or priority. You can specify the `key` parameter using an object literal that contains the `value` and the `key`. For example: `startAt: { value: 'some-value', key: 'some-key' }`.
3838
:::
3939

4040
To learn more about how sorting and ordering data works in Firebase, check out the Firebase documentation on [working with lists of data](https://firebase.google.com/docs/database/web/lists-of-data#sorting_and_filtering_data).

0 commit comments

Comments
 (0)