I need help with implementing the data-ng-click functionality for a dynamically created button. Can someone assist me with this?
var table = document.getElementById("dashboard");
for( var i = 0; i < $scope.namesOfMembers.length; i++ ){
var row = table.insertRow(2);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4=row.insertCell(3);
cell1.innerHTML = namesOfMembers[i];
cell2.innerHTML = paidOrNot[i];
cell3.innerHTML=amountPaid[i];
var amtBox = '<input type="text" size="20" style="height: 23px" data-ng-model="amountBox" />';
angular.element(cell4).append((amtBox));
var updBtn = '<input id="updateAmount" type="button" value="UPDATE" data-ng-click="showDashBoard()" />';
angular.element(cell4).append((updBtn));