title: How To Validate Number in TextField in typescript (Ionic Framework)
body: <p>I want to validate only numbers are key-in in the input field for <strong>IC NUMBER</strong> text field. How should I parse the input entered by the user into int?</p>
  
  <blockquote>
  <pre><code>&lt;form&gt;
      &lt;ion-list&gt;
  
        &lt;ion-item&gt;
          &lt;ion-input type="text"  placeholder="USERNAME" &gt;&lt;/ion-input&gt;
        &lt;/ion-item&gt;
  
        &lt;ion-item&gt;
          &lt;ion-input type="password"  placeholder="PASSWORD"&gt;&lt;/ion-input&gt;
        &lt;/ion-item&gt;
  
        &lt;ion-item&gt;
          &lt;ion-input type="text"  placeholder="IC NUMBER"&gt;&lt;/ion-input&gt;
        &lt;/ion-item&gt;
  
               &lt;div padding&gt;
             &lt;button ion-button   color="dark" block&gt;SUBMIT&lt;/button&gt;
          &lt;/div&gt;
       &lt;/ion-list&gt;
  &lt;/form&gt;
  </code></pre>
  </blockquote>