Show input field when specific option is selected from select box - Ionic2
<p>When I select on option, I want to show a input text tag.</p>

<p><strong>html code</strong></p>

<pre><code>&lt;ion-item &gt;
   &lt;ion-label floating&gt;TIN/GRN NO&lt;/ion-label&gt;
   &lt;ion-select [(ngModel)]="num"&gt;
     &lt;ion-option *ngFor="let nom of list" value="{{nom.value}}" checked="  {{nom.checked}}" [innerHTML]="nom.label"&gt;{{nom.text}}&lt;/ion-option&gt;
    &lt;/ion-select&gt;
  &lt;/ion-item&gt;
  &lt;ion-item *ngIf="num == 'true'"&gt;
     &lt;ion-label&gt;Detail&lt;/ion-label&gt;
     &lt;ion-input type="text"&gt;&lt;/ion-input&gt;
  &lt;/ion-item&gt;
</code></pre>

<p><strong>ts file</strong></p>

<pre><code>num = 'true';
 list: Array&lt;{ value: number, text: string, checked: boolean }&gt; = [];

constructor:
        this.list.push({ value: 1, text: 'TIN NO', checked: false  });
        this.list.push({ value: 2, text: 'GRN NO' , checked: false });
</code></pre>