Sivakumar

Sivakumar

  • NA
  • 551
  • 219.5k

dropdownlist data is not binding in angularjs

Dec 10 2015 4:53 AM
hi  I am using select2 plugin for  my dropdownlist.
this is my dropdownlist html code :
 
 
<div class="form-group col-md-3">
<span>Must Have Skills *</span>
<select class="js-example-tokenizer js-states form-control" id="skills" multiple="multiple" name="skill" data-ng-model="Job.MustHaveSkills" ng-class="submitted?'ng-dirty':''" required autofocus>
<option value="" selected="selected">-- Select Must Have Skills --</option>
<option data-ng-repeat="s in skillList" value="{{s.SkillID}}">{{s.Name}}</option>
</select>
<span class="error" ng-show="(f1.skill.$dirty || submitted) && f1.skill.$error.required">Must Have Skills required!</span>
</div>
 
When I click save button it shows error message and the data not to bind.
 
 
 
Please give me a help.
 
Thank you.

Answers (1)