Imagine having an input box structured like this
<ion-input [(ngModel)]="Gender" type="text" placeholder="Gender Type"></ion-input>
<ion-input [(ngModel)]="hairCat" type="text" placeholder="Hair Type"></ion-input>
Now, let's take another textbox with the same structure
<ion-input [(ngModel)]="Gender" type="text" placeholder="Gender Type"></ion-input>
<ion-input [(ngModel)]="hairCat" type="text" placeholder="Hair Type"></ion-input>
The goal is to allow the inputs to accept multiple values simultaneously.
For instance:
[Boy Girl][black brown]
To elaborate further, suppose we have a predefined textbox like this
<ion-input type="text" readonly [(ngModel)]="values" value="adp"></ion-input>
<ion-input type="number" placeholder="Total Votes" name="vote" [(ngModel)]="vote"></ion-input>
<ion-input type="text" readonly [(ngModel)]="values" value="lp"></ion-input>
<ion-input type="number" placeholder="Total Votes" name="vote" [(ngModel)]="vote"></ion-input>
We have:
value Vote
adp
lp
Here, the value is predefined while the vote will be entered by the user.
How can we modify them to accept diverse values?