title: Ionic and AngularFire2: How to retrieve data from a FireStore document?
body: <p>I am probably missing some basics, hopefully this question is not too dumb...</p>
  
  <p>I am trying to retrieve data from a document stored in FireStore. I am following the example provided here: 
  <a href="https://github.com/angular/angularfire2/blob/master/docs/firestore/documents.md" rel="nofollow noreferrer">https://github.com/angular/angularfire2/blob/master/docs/firestore/documents.md</a></p>
  
  <p>What I am wondering: After having access to the document:</p>
  
  <pre><code>this.itemDoc = afs.doc&lt;Item&gt;('items/1');
  this.item = this.itemDoc.valueChanges();
  </code></pre>
  
  <p>How can I retrieve data from that document? I don't want . to use it in my html, but get the data from some fields and do something with it in TypeScript.</p>
  
  <p>Obviously this.item is not an array so item[0].fieldname doesn't work...</p>
  
  <p>TIA.</p>