[Solved] On Click of plus repeat the section [closed]


With angular:

<div ng-app="app" ng-controller="MainController">
    <ul>
        <li ng-repeat="person in people">
            <input ng-model="person.name"/>
        </li>
    </ul>
    <button ng-click="new_person()">+</button>
</div>

JS code:

var app = angular.module('app', []);

app.controller('MainController', function($scope) {
    $scope.people = [
        {name:''}
    ];
    $scope.new_person = function() {
        $scope.people.push({name:''});
    };
});

You can add more details of the person inside li tag.

JSFIDDLE

solved On Click of plus repeat the section [closed]