angularjs - ng-repeat with angular form select box -
i working angularjs dynamic forms . according userid value generated multiple form field same model name using ng-repeat. using select box loading location. per requirement default need load first option value select box. using ng-init loading first option data not working . inside controller trying select box model value $scope.user.location shown error. can please send js fiddle solution problem. html <div ng-app="myapp"> <div ng-controller="myctrl"> <form role="form" name='userform' novalidate> <div class="container"> <div class="row" ng-repeat="user in users"> <div class="form-group"> <div class="col-md-3"> <label>id</label> <input ng-model="user.id" id="user.id" name="user.id" placeholder=...