Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.GuiaService.getGuias()
- .snapshotChanges()
- .subscribe(item => {
- this.guiaList = [];
- item.forEach(element => {
- let guia = element.payload.toJSON();
- guia["$key"] = element.key;
- this.guiaList.push(guia as Guia);
- console.log(guia)
- });
- });
Add Comment
Please, Sign In to add comment