title: How to use unique filter in controller in AngularJS
body: <p>I would like to filter an array by unique category in controller and then use the filtered array with <code>ng-repeat</code> in html page. My array is:</p>
  
  <pre><code>$scope.tabs = [
                  {OBJECTID:1, TYPES:8, Category:"Pharmacies",Name_EN:"antonis" , text : "Home"},
                  {OBJECTID:2, TYPES:8, Category:"Opticians",Name_EN:"antonis" , text : "Games"},
                  {OBJECTID:3, TYPES:8, Category:"Doctors", Name_EN:"antonis" , text : "Mail"},
                  {OBJECTID:4, TYPES:8, Category:"Clinics", Name_EN:"antonis" , text : "Car"},
                  {OBJECTID:5, TYPES:8, Category:"Clinics", Name_EN:"antonis" , text : "Profile"},
                  {OBJECTID:6, TYPES:8, Category:"Clinics", Name_EN:"antonis" , text : "Favourites"},
                  {OBJECTID:7, TYPES:8, Category:"Pharmacies",Name_EN:"antonis" , text : "Chats"},
                  {OBJECTID:8, TYPES:4, Category:"Sights",Name_EN:"antonis" , text : "Settings"},
                  {OBJECTID:9, TYPES:4, Category:"Meuseums",Name_EN:"antonis"  ,text : "Home"},
                  {OBJECTID:10, TYPES:4, Category:"Meuseums",Name_EN:"antonis1" , text : "Home"}  
  
              ];
  </code></pre>
  
  <p>the filtered array will be like this: </p>
  
  <pre><code>$scope.FilteredArray = [
                  {Category:"Pharmacies"},
                  {Category:"Opticians"},
                  {Category:"Doctors"},
                  {Category:"Clinics"},
                  {Category:"Sights"},
                  {Category:"Meuseums"},
  
              ];
  </code></pre>
  
  <p>Thanks in advance.</p>