How to use selectize for multiple options?

2

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!

    
asked by Pxion 09.04.2016 в 00:22
source

1 answer

0

I recommend you use this, it is the Angular complement related to Selectize: link

    
answered by 27.06.2016 в 16:38