Skip to content

Commit 46cc99d

Browse files
authored
docs(afs): Fixed typo (#2729)
simple -> simply
1 parent 7b5e71a commit 46cc99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/firestore/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class AppComponent {
217217

218218
**What is it?** - Returns an Observable of `DocumentChangeAction[]` as they occur. Similar to `stateChanges()`, but instead it keeps around the trail of events as an array.
219219

220-
**Why would you use it?** - This method is like `stateChanges()` except it is not ephemeral. It collects each change in an array as they occur. This is useful for ngrx integrations where you need to replay the entire state of an application. This also works as a great debugging tool for all applications. You can simple write `afs.collection('items').auditTrail().subscribe(console.log)` and check the events in the console as they occur.
220+
**Why would you use it?** - This method is like `stateChanges()` except it is not ephemeral. It collects each change in an array as they occur. This is useful for ngrx integrations where you need to replay the entire state of an application. This also works as a great debugging tool for all applications. You can simply write `afs.collection('items').auditTrail().subscribe(console.log)` and check the events in the console as they occur.
221221

222222
**When would you not use it?** - When you just need a list of data. This is a more advanced usage of AngularFirestore.
223223

0 commit comments

Comments
 (0)