I have a specific requirement. I need to display 2 input text fields after selecting a specific value from a drop down which is 'Add New...' My code snippet is below -
<td>
<div *ngIf="item.showOperationField">
<p-checkbox
value ="inflationaryImpactCheck"
label="Save for Inflationary Impact"
name = "calculationSaveInflation"
[(ngModel)]="item.inflationaryImpact"
pTooltip="Check the Inflationary Impact box to map this calculation to an index for Inflationary Pressure calculation."
binary="true">
</p-checkbox>
</div>
</td>
<td>
<div *ngIf="item.inflationaryImpact">
<p-dropdown
[style]="{'width':'200px'}"
[options]="inflation"
name = "calculationInflation"
[(ngModel)]="item.selectedInflation">
</p-dropdown>
</div>
</td>
<td>
<div *ngIf="item.selectedInflation=='Add New...'">
<input
[style]="{'width':'200px'}"
type="text"
name="catValue"
pInputText
[(ngModel)]="item.catValue"
/>
</div>
</td>
Now I need to display 2 input boxes while selecting a specific value from the drop down "inflation" which is 'Add New...'. I have tried with the above code snippet but nothing happened. Please help me.