I have a question about how to use the selectize
of angular to select several options, in two different selects, for example, the user has a series of options to select their tastes in terms of sports and assign a score of 1 to 10, football, baseball, basketball, then I have the following in my html:
<div class="form-group m-b-md">
<selectize config='optionsConfig' options='sports' ng-model=""></selectize>
</div>
<input type="number" min="1" ng-model="" required>
There is an option if you want to add another sport and score!
and in angular
optionSelect:['futbol', 'baloncesto', 'tennis', 'beisbol']
that information would insert it in the following way in an array:
sportsPoints[
{
sport: 'futbol',
points: 10
},
{
sport: 'tennis',
points: 4
},
]
If you can help me, I would really appreciate it!