Here is the JSON data provided for reference.
JSON Data
{
"1":{"id":"1","name":"Websites IT & Software","sub_cat":[
{"id":"1","name":"Build a Website","description":"Build a Website"},
{"id":"2","name":"Build an Online Store","description":"Build an Online Store"},
{"id":"3","name":"Get Traffic to my Website ","description":"Get Traffic to my Website "},
{"id":"4","name":"Write some Software","description":"Write some Software"},
{"id":"5","name":"Convert a Template to a Website","description":"Convert a Template to a Website"},
{"id":"53","name":"Create a Wordpress Template","description":"Create a Wordpress Template"},
{"id":"54","name":"Create a Joomla Template","description":"Create a Joomla Template"},
{"id":"55","name":"Create a Drupal Template","description":"Create a Drupal Template"},
{"id":"56","name":"Develop a Mac Application","description":"Develop a Mac Application"}
]},
"2":{"id":"2","name":"Mobile","sub_cat":[
{"id":"6","name":"Write an iPhone application","description":"Write an iPhone application"},
{"id":"7","name":"Write an iPad application","description":"Write an iPad application"},
{"id":"8","name":"Write a Blackberry application","description":"Write a Blackberry application"},
{"id":"9","name":"Write an Android application","description":"Write an Android application"},
{"id":"57","name":"Create a Mobile Website","description":"Create a Mobile Website"}]}}
I am looking to retrieve subcategories based on the selected category in an Angular-friendly manner. Would it be necessary to use Ajax calls again to fetch subcategories based on the chosen category?
If you have any insights or suggestions on how I can achieve this, your help would be greatly appreciated. Thank you :)