I want to generate a HTML FORM from below JSON.
{
"templateName":"C-Learn Survey",
"surveyQuestions":[
{
"questionTitle":"Enter your name",
"questionType":"Text",
"questionGroup":{
}
},
{
"questionTitle":"Enter your empid:",
"questionType":"Text",
"questionGroup":{
}
},
{
"questionTitle":"Select your technologies",
"questionType":"Multi choice",
"questionGroup":{
"options":[
{
"optionText":"Java"
},
{
"optionText":"Mule"
},
{
"optionText":".net"
}
],
"showRemarksBox":false
}
},
{
"questionTitle":"Gender",
"questionType":"Single choice",
"questionGroup":{
"options":[
{
"optionText":"Male"
},
{
"optionText":"Female"
}
],
"showRemarksBox":false
}
}
]
}
for example
{
"questionTitle":"Enter your name",
"questionType":"Text",
"questionGroup":{
}
for the above json there should be a html form element like this
<label>Enter your name</label>
<input type="text" placeholder="Enter your name">
I am new to Angular and seen some post and code on internet saying that It is possible through jquery Please suggest me how to achieve that. I am using Angular 7.