how to add new control(input or check) using angular script in mvc 5
am binding list of values from database
i have a column i.e controltype , if item has control type checkbox i want add checkbox beside for that item
if control type is input i want to add input beside that item
i want to add control using angular script
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MayankPosted Dec 15, 2016, 6:53 AM
//var request = {
// method: 'Get',
// url: '/Home/GetControls/',
// data: formdata,
// headers: {
// 'Content-Type': undefined
// }
//};
//// SEND THE FILES.
//$http(request)
// .success(function (d) {
// alert("Success");
//
//
// })
// .error(function () {
// });
// alert("controller");
//By Above code you can call the mvc controller to get control type
var technologies = [
{ ControlType: "checkbox" },
{ ControlType: "text"},
];
$scope.technologies = technologies;
Fabio Silva LimaPosted Dec 13, 2016, 12:43 PM