Skip to content

Instantly share code, notes, and snippets.

@feliperfranco
Created April 15, 2019 17:13
Show Gist options
  • Save feliperfranco/583f01402d437504952101b797831026 to your computer and use it in GitHub Desktop.
Save feliperfranco/583f01402d437504952101b797831026 to your computer and use it in GitHub Desktop.
private getTotalRegistros() {
return this.db.list("CONTATOS")
.snapshotChanges().pipe(
map(changes => {
return changes.length;
})
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment