I am populating an HTML table dynamically using input from textboxes. I want to achieve the following:
Given
$scope.submittedNumbers = 00251212 00254545 00257878 00256565
Display as
00251212
00254545
00257878
00256565
Below is my AngularJS function for adding a row to the HTML table. How can I make this work?
$scope.addCertificate = function () {
var certificate = {
emailAddress: $scope.emailAddress,
certificateType: $scope.certificateType,
searchType: $scope.searchType,
submittedNumbers: $scope.submittedNumbers,
};
$scope.requests.push(certificate);
};