title: Get value from alert in ionic
body: <p>I am using ionic 3 and i want to get the input and add some autocomplete on it using google maps.
  I have the following alert in my .ts file. </p>
  
  <pre><code>let alert = this.alertCtrl.create({
      title: 'Offer a Ride',
      inputs: [
        {
          name: 'From',
          placeholder: 'From',
          id: 'From'
        },
        {
          name: 'To',
          placeholder: 'To',
          type: 'text',
          id: 'To'
        },
        {
          name: 'Date',
          placeholder: 'Date',
          type: 'date'
        }
      ],
      buttons: [
        {
          text: 'Cancel',
          role: 'cancel',
          handler: data =&gt; {
            console.log('Cancel clicked');
                  elem.style.filter='none';
          }
        },
        {
          text: 'Offer',
          handler: data =&gt; {
            elem.style.filter='none';
            var from = data.From;
            var to = data.To;
            //this.navCtrl.setRoot (TabsPage, {from:from, to:to});
              let toast = this.toastCtrl.create({
              message: 'Location was set Successfully',
              duration: 3000
            });
            toast.present();
          }
        }
      ]
    }); 
  </code></pre>
  
  <p>I want to do the following:</p>
  
  <pre><code>var autocomplete;
  autocomplete = new google.maps.places.Autocomplete(
            (document.getElementById('From')),
            {types: ['geocode']});
  </code></pre>
  
  <p>However, I cannot get the input of id 'From'. Any idea how to do this?</p>