[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: create and list Entries
Browse files Browse the repository at this point in the history
do not show again on WriteEntry cancel alert

add Entries to DB

list entries
  • Loading branch information
momargoh committed Feb 5, 2023
1 parent 46f6c43 commit 56b962f
Show file tree
Hide file tree
Showing 24 changed files with 2,310 additions and 188 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,24 @@ I like to keep data model class definitions in a separate file to the service, I
- checking validity of the incoming data (particularly with document databases like Firestore, there's the risk of older documents missing newer required fields).

These methods could equally be included in the service file as opposed to in the class definition file.

## AngularFire syntax

It seems AngularFire has just been updated but its docs haven't. For example [it suggests](https://github.com/angular/angularfire#example-use) to fetch a collection using the syntax ...

```
constructor(firestore: Firestore) {
const collection = collection(firestore, 'items');
this.item$ = collectionData(collection);
};
```

but then its section on querying uses the older syntax like ...

```
constructor(firestore: AngularFirestore) {
this.items = firestore.collection('items').valueChanges();
}
```

so it's been a little confusing!
Loading

0 comments on commit 56b962f

Please sign in to comment.