I'm creating a table using AngularJS and Bootstrap. I would like to know how do I add a new line by reaching the end and pressing the enter key?
The important thing is to get the code of the enter button and then create the new line inside the array
$scope.addline = function ($event) {
debugger
if (event.keyCode == 13) {
var algo = {};
for (i = 0; i < $scope.etc.Fields.length; i++) {
algo["seu array"] = ""
}
$scope.myArrayData.push(algo);
}
}