to repeat a div as the number entered
<div class="form-group"> <div class="col-md-6 col-xs-12"> <li>Option {{i}}</li> <input type="radio" ng-model="score" ng-value=""/> <br> <textarea ng-model="option" class="form-control" ></textarea> </div> </div>
<div ng-repeat="i in range(Data.nop) track by $index"> $scope.range = function(nop){ var input = []; nop = parseInt(nop); for (var i = 0; i < nop; i++) { input.push(i+1) } return input; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)