• It's hard to help you with a bug in your code when the question does not include any of the buggy code. Read [AngularJS ` – georgeawg Apr 01 '19 at 13:43
  • use track by expression i.e. `qualifications track by qualification.id` – Satpal Apr 01 '19 at 14:36
  • 1 Answers1

    0

    The ng-model directive compares object references not object contents. Use a primitive property for the ng-model value:

    <select class="form-control" ng-model="empEdit.qualById"
            ng-options="q.id as q.qualificationName for q in qualifications"
            name="selQual1"> 
      <option value="" disabled>
        Choose your qualification
      </option>
    </select>
    
     $scope.empEdit = {"name":"SomeName", "id": 2, qualById: 1};
    

    For more information, see

    georgeawg
    • 48,608
    • 13
    • 72
    • 95