title: Angular 2: Retrieve objects from firebase
body: <p>Below is my firebase database screenshot:
  <a href="https://i.stack.imgur.com/osNXK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/osNXK.png" alt="enter image description here"></a></p>
  
  <p>Below is the code in the "app.component":</p>
  
  <pre><code>import { AngularFireDatabase, FirebaseListObservable } from "angularfire2/database-deprecated";
  import { AngularFireAuth } from 'angularfire2/auth';
  import { Observable } from 'rxjs/Observable';
  import * as firebase from 'firebase/app';
  
  @Component ....
  
  items: FirebaseListObservable&lt;any[]&gt;;
  
  constructor(public af: AngularFireDatabase) {
     this.items = af.list('/projects', {
       query: {
         limitToLast: 10
       }
     });
     console.log(this.items);
  }
  </code></pre>
  
  <p>but I'm not getting the data. Could anyone help me out on this?</p>
  
  <p>I've completed the angularfire2 setup and able to write the data to the real time database. It's the issue with getting the data from db.</p>