I have created radio button dynamically and I Have attached ng-click
function to the radio button, but function is not invoking
Code
var app = angular.module("bulkImportApp", []);
app.controller("bulkImportCtrl", function ($scope, $http, $timeout) {
$scope.appendRadioCheckbox = function() {
$(".gridInfo tbody tr
td:nth-child(2)").text("").append("<input type='radio'
class='bulkImportSelect1' name='r1' ng-click='bulkImportSelect()'>");
}
$scope.bulkImportSelect = function() {
alert("bulk Import");
}
$scope.sendDateInfo = function () {
var url2 =
"../WebServiceResources.asmx/GetBulkImportDetailedReportDateRange";
$http({
method: "POST",
url: url2,
contentType: "application/json; charset=utf-8",
dataType: "JSON",
data: JSON.stringify({ "values": $scope.bulkImportDateInfo2
})
})
.then(function (response) {
$scope.bulkImpInfo2 = JSON.parse(response.data.d);
$scope.appendRadioCheckbox();
});
}
});
});
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.