Guest User

Untitled

a guest
Jul 12th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ngOnInit() {
  2. this.GuiaService.getGuias()
  3. .snapshotChanges()
  4. .subscribe(item => {
  5. this.guiaList = [];
  6. item.forEach(element => {
  7. let guia = element.payload.toJSON();
  8. guia["$key"] = element.key;
  9. this.guiaList.push(guia as Guia);
  10. console.log(guia)
  11.  
  12. });
  13. });
Add Comment
Please, Sign In to add comment