Posts

Showing posts from November, 2018

Fetching List Of Data from firebase

Fetching List Of Data from Firebase 1. Creating a List Component  2. Fetch list of data from firebase. 1. Creating a List Component. ng g c list --spec=false The above command generates 3 file's as follow's  1. list.component.html 2. list.component.ts 3. list.component.css Here we will fetch the user's which we have already pushed into firebase in previous post. For reference please visit following link  https://angularfirebasedeveloper.blogspot.com/2018/10/pushing-form-data-into-fire-base.html  . 2. Fetching list of User's from firebase In list.component.ts import { Component, OnInit } from '@angular/core'; import { AngularFireDatabase } from 'angularfire2/database'; @Component({ selector: 'app-list', templateUrl: './list.component.html', styleUrls: ['./list.component.css'] }) export class ListComponent implements OnInit { list = []; constructor(private db: AngularFireDatabase) { } ngOn...