title: How to get input text value in ionic
body: <p>I'm trying to get <code>input</code> text value and store it in a variable named <code>input</code> in <code>ionic</code>. But I tried and failed. Can anyone please tell me what I have faulty done?</p>
  <p>This is my <code>HTML</code></p>
  <pre><code>  &lt;ion-content&gt;
    &lt;ion-list&gt;
      &lt;ion-item&gt; 
          &lt;ion-label stacked&gt;display&lt;/ion-label&gt;
        &lt;ion-input type=&quot;text&quot; text-right id=&quot;input&quot; &gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;    
    &lt;/ion-list&gt;
    &lt;/ion-content&gt;
  </code></pre>
  <p>and this is my <code>home.ts</code> in ionic</p>
  <pre><code>import { Component } from '@angular/core';
  import { NavController } from 'ionic-angular';
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
    constructor(public navCtrl: NavController) {
      var input=document.getElementById('input').nodeValue;
      document.getElementById('seven').innerHTML=input;
    }
    
  }
  </code></pre>