title: How to test empty data in json file with angular
body: <p>I want to test if data are empty in a json file with angular.</p>
  
  <p>here is my controller :</p>
  
  <pre><code>app.controller('infosVillageController', ['$scope', function($scope) {
  $scope.infosvillages = [
      {
          "name":"Soleil camp (Le)",
          "id":1,
          "website":"",
          "email":""
      },
      {
          "name":"Camp Cosse (La)",
          "id":80,
          "website":"",
          "email":""
      }
  ];
  }]);
  </code></pre>
  
  <p>As you see, sometimes i don't have datas in th json.</p>
  
  <p>In my html i want to show if the datas are emptys. For exemple, i want to show "no website" or "no email".</p>
  
  <p>So, how i can test if somme datas are empty in my json file ?</p>
  
  <p>i have try something like this in my controller but it doesnt work :</p>
  
  <pre><code>    if ($scope.infosvillages.website == null) {
          $scope.infosvillages.website = "no website"
      };
  </code></pre>
  
  <p>thank you by advance</p>