Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
  <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">


JavaScript
$scope.propertynames=[];
$http(
{
  method:'GET',
  url:'dataentry'
  headers: 
  {
  'Content-Type': 'application/x-www-form-urlencoded'
  }
  }).success(function(data)
 {
 $scope.propertynames=data;
 });
$scope.entrybtn=function()
{
}
Posted
Updated 15-Apr-15 20:46pm
v3
Comments
[no name] 16-Apr-15 2:52am    
like this click here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900