README.md misused variable
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 22 h 28 min
- PR mergées (30 j)
- 6
Description
Head to https://github.com/angular/angularfire/blob/master/README.md
### Version info
**Angular:**
N/A
**Firebase:**
N/A
**AngularFire:**
N/A
**Other (e.g. Ionic/Cordova, Node, browser, operating system):**
N/A
### How to reproduce these conditions
**Failing test unit, Stackblitz demonstrating the problem**
N/A
**Steps to set up and reproduce**
N/A
**Sample data and security rules**
N/A
### Debug output
**Errors in the JavaScript console**
N/A
**Output from firebase.database().enableLogging(true);**
N/A
**Screenshots**
N/A
### Related Issues
[#3343](https://github.com/angular/angularfire/issues/3343)
### Expected behavior
The declared retrieved collection `itemCollection` is to be used by passing it into the `collectionData` method as a parameter.
``` typescript
constructor() {
const itemCollection = collection(this.firestore, 'items');
this.item$ = collectionData(itemCollection);
}
```
### Actual behavior
The declared retrieved collection `itemCollection` is not being used, instead an unexisting collection `collection` is being used.
``` typescript
constructor() {
const itemCollection = collection(this.firestore, 'items');
this.item$ = collectionData(collection);
}
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Ouvrez README.md et examinez l’exemple TypeScript lié dans l’issue. Comparez itemCollection déclaré avec l’argument passé à collectionData, puis mettez à jour l’exemple afin que la collection déclarée soit utilisée et vérifiez que l’extrait affiché est cohérent.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, firebase, typescript
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100