<div class="form-group" ng-repeat="x in propertynames" ng-init="items"> <label class="control-label col-lg-2">{{x.name}} : </label> <div class="col-lg-4"> <input type="text" name="{{x.name}}" class="form-control" required=""ng-model='a'> </div> {{a}} </div> <input type="button" on-click="entrybtn()" value="Save" class="btn btn-success form-control">
$scope.propertynames=[]; $http( { method:'GET', url:'dataentry' headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }).success(function(data) { $scope.propertynames=data; }); $scope.entrybtn=function() { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)