$scope.addcrt = function (quantity) { // alert (quantity); $scope.arr.push({ "item": $scope.itid, "prc": $scope.amt, "qtt": quantity }); }
<input type='text' id='txtqty' ng-model="qt" /> <input type='button' ng-click="addcrt(qt)" class='btnadd' value='Add' />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)