am adding new row on clicking Plus(+),
i want to show Minus (-) to previous row ,if i click i want to delete that
particular row ,and continuosly for new row + , and for all previous row i want to show -(glypicon)
JS
var ReceiptsApp = angular.module('ReceiptsApp', []);
ReceiptsApp.controller('ReceiptsController', function ($scope) {
$scope.sample = [{
id: '1',
name: 'Bhanu',
Address: 'Moosapet',
Mobile: '9246100100'
}, {
id: '2',
name: 'Madhu',
Address: 'Uppal',
Mobile: '9000330653'
}, {
id: '3',
name: 'Geetha',
Address: 'Sanath Nagar',
Mobile: '9912340519'
}];
$scope.rvm = [{}];
$scope.addRow = function (index, c) {
if ($scope.rvm.length == (index + 1)) {
$scope.rvm.push({
});
}
}
});
Vaibhav DeshmukhPosted Sep 27, 2016, 3:28 AM
$scope.rvm.splice($index, 1);
}
Krishna Rajput SinghPosted Sep 27, 2016, 4:22 AM
suman goudPosted Sep 27, 2016, 3:37 AM