Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229111

Text not showing on Ionic App

$
0
0

Hi Aman, nice to see your progress! :clap::stuck_out_tongue_winking_eye::call_me_hand:

Note that in your .ts file you need to create the variables:

public MaxNum: number;
public MinNum: number;

And in the .html file you can do access it by the ngModel:

[(ngModel)]=“MinNum”
[(ngModel)]=“MaxNum”

So at the end you will have your table tag like that:

  <table style="border: 0px">
    <tr>
      <td style="width: 25%">Enter a minimum number:</td>
      <td><input type="tel" [(ngModel)]="MinNum" name="MinNum" id="MinNum"/></td>      
    </tr>
    <tr>
      <td style="width: 25%">Enter a maximum number:</td>
      <td><input type="tel" [(ngModel)]="MaxNum" name="MaxNum" id="MaxNum"/></td>
    </tr>
    <tr>
      <ion-item>
        <ion-label>Select an operator: </ion-label>
        <ion-select id="operator">
          <ion-option value="add">Addition</ion-option>
          <ion-option value="sub">Subtraction</ion-option>
          <ion-option value="mult">Multiplication</ion-option>
          <ion-option value="div">Division</ion-option>
        </ion-select>
      </ion-item>
    </tr>
  </table>

Viewing all articles
Browse latest Browse all 229111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>