title: how to fetch subCategories based on categories angularjs
body: <p>Below is my JSON data.</p>
  
  <p><strong>JSON</strong></p>
  
  <pre><code>{
  "1":{"id":"1","name":"Websites IT &amp; 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"}]}}
  </code></pre>
  
  <p>All what I want is to fetch subcategories based on category that user choose and I wanted to implement same thing in angular way. Do I need to make an Ajax again to fetch subcategory based on category.</p>
  
  <p>Any thoughts on how can I achieve this, help would be appreciated. Thanks :)</p>