How can I add new multiple inputs with angularjs?
I tried but can't binds ng-repeat with input ng-model. I wish to add ng-repeat of selectedItems to <div class="item-text-wrap">but It doesn't work unless initialized it.
If I click add new product button new Product Select field and new price input field will be displayed as in picture.

here is plunker.
here is my html
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script data-require="angular.js@*" data-semver="1.3.0-beta.5" src="https://code.angularjs.org/1.3.0-beta.5/angular.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body ng-controller="mycontroller">
<!-- <div class="item-text-wrap" ng-repeat="item in selectedItems"> -->
<div class="item-text-wrap">
<label class="item item-input item-select">
<span class="input-label">Product</span>
<select ng-model="item" ng-options="item as item.name for item in items" ng-change="toggleChange(item)" class="col col-100"><option style="display:none" value="">select an item</option></select>
</label>
<label class="item item-input">
<span class="input-label">Price</span>
<input type="number" ng-model="item.price" placeholder="Select an item" ng-disabled="!item" />
</label>
</div>
{{selectedItems}}
</body>
</html>
here is my script.js
var app = angular.module('myApp', []);
app.controller('mycontroller', function($scope) {
$scope.selectedItems = [];
$scope.items = [{'id':1,'name':'apple', 'price': 100},
{'id':2,'name':'orange', 'price':75},
{'id':3,'name':'lemon', 'price':50}]
$scope.toggleChange = function (item) {
$scope.selectedItems.splice($scope.selectedItems.indexOf(item), 1);
$scope.selectedItems.push(item);
};
});

toggle changefunction comment out thesplicefunction line