I have a JSON document structured like the example below, and I am looking to generate checkboxes dynamically using Angular.
let data = {
"Name":[
{
"tagId":4489,"name":"Name","label":"Employee Name"
}
],
"Service":[
{
"tagId":1722,"name":"good service","label":"Good Service"
},
{
"tagId":3707,"name":"bad service","label":"Bad Service"
}
]};
As I am still getting familiar with AngularJS, the checkboxes need to be displayed in the specific format outlined below.
Name
[ ] Employee Name
Service
[ ] Good Service
[ ] Bad Service
The JSON data is fetched via AJAX on application startup within my main controller. However, I am unsure how to utilize Angular's ng-repeat function to construct the checkboxes as required.
Any guidance or assistance would be greatly appreciated.