title: Ionic 2 document.getElementById returns null
body: <p>I am creating a small app with Ionic 2. Now I am testing it in browser with ionic serve. In my <code>map.html</code> file, I have following code:</p>
  
  <pre><code>&lt;ion-content &gt;
     &lt;div  id="myMap"&gt;&lt;/div&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>In my <code>map.ts</code> file, I tried to do this:</p>
  
  <pre><code>this.platform.ready().then((readySource) =&gt; {
  console.log('Platform ready from', readySource);
  console.log(document.getElementById('myMap'));
  //this.initializeMap();
  });
  </code></pre>
  
  <p>The console outputs:</p>
  
  <p><code>
  Platform ready from dom
  null
  </code></p>
  
  <p>Scratch my head a lot but still can't find why it can't locate that element. </p>
  
  <p>Any help would be appreciated!</p>