title: How to check for an empty object in an AngularJS view
body: <p>In the controller's scope I have something like:</p>
  
  <pre><code>$scope.card = {};
  </code></pre>
  
  <p>In the view I must check if my object is still an empty literal, <code>{}</code>, or if it contains some data in some fields.</p>
  
  <p>I tried this:</p>
  
  <pre><code>ng-show="angular.equals({}, card)"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ng-show="!angular.equals({}, card)"
  </code></pre>
  
  <p>but it didn't work.</p>
  
  <p>Are there any better ways? How do you check if an object is empty or if it contains some fields?</p>