title: ionic 2 how to set and get value local storage
body: <p>I have 2 screens. Each screen have one input field. At last screen I need to get the entered values of all input screen at last screen. For that I need to store the each screen value locally when I press next button. But in ionic 2 how can I do that?</p>
  
  <p>here my <strong>html code</strong></p>
  
  <pre><code>&lt;ion-input [(ngModel)]="SignUpData.username" name="username" type="text"  #username="ngModel" required&gt;
  &lt;/ion-input&gt;
  </code></pre>
  
  <p>in my <strong>app/app.module.js</strong> :</p>
  
  <p>I have this line </p>
  
  <pre><code>import { IonicStorageModule } from '@ionic/storage';
  IonicStorageModule.forRoot()
  </code></pre>
  
  <p>And in my <strong>page/signup.ts</strong></p>
  
  <pre><code>SignUpData = { username:''};
  nextbtn() {
  console.log(this.SignUpData.username);  // i am getting correct value
  }
  </code></pre>
  
  <p>But how can I code more or import some <code>storage</code> to store my value (set value), And in another screen, <code>secondscreen.ts</code>, how can I get that locally stored value.</p>