I have this controller in angular

<script type="text/javascript">
var app = angular.module('myApp', []);
app.controller('attivitaCtrl', function($scope, $http) {

  $http.get("data.json")
  .success(function (response) {$scope.attivita = response.attivita;});

});

</script>

and this structure of json

      {
         "nome":"",
         "indirizzo":"",
         "contatto":"",
         "categoria":["catA","catZ","catD"]
      },
      {
         "nome":"",
         "indirizzo":"",
         "contatto":"",
         "categoria":["catB","catZ","catS"]
      }


i want that controller returns distinct values of all arrays "categoria"
I searched the forum but i am not very expert in angular. thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to