0
<div class="form-group">
            <label for="department" class="col-sm-3 control-label">Department</label>
            <div class="col-sm-9">
                <select name="department" id="department" class="form-control"
                              ng-model="employee.department"
                        ng-options="dept for dept in departments"></select>
            </div>
        </div>
    </fieldset>
    <br />
angularFormsApp.controller('efController',
function efController($scope, efService) {

    $scope.employee = efService.employee;

    $scope.departments = [
        "Engineering",
        "Marketing",
        "Finance",
        "Administration"
    ];

});
georgeawg
  • 48,608
  • 13
  • 72
  • 95
Alden Linn
  • 11
  • 2
  • Please be more specific when detailing a problem . Take a few minutes to read [ask] – charlietfl May 24 '18 at 23:23
  • Note that the ng-options shown works just fine here http://plnkr.co/edit/STLY1vVuZykiXgZbDiTO?p=preview – charlietfl May 24 '18 at 23:26
  • It is working fine for us , here is the woking html code : '' Please look over the css class or styles that added on your Id and class . – Shekkar May 25 '18 at 11:53

0 Answers0